Skip to content

Commit 716129f

Browse files
Check for long filenames in CI pipeline (#5027)
* Check for long filenames in CI pipeline * Base Path Length == 75 to account for visual studio defaults
1 parent 436c090 commit 716129f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

eng/pipelines/templates/jobs/archetype-sdk-client.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,17 @@ jobs:
155155
parameters:
156156
ContinueOnError: false
157157

158+
# Base Path Length calculated based on Visual Studio's defaults for projects.
159+
# By default, Visual Studio puts projects in a folder structure like this:
160+
# C:\Users\<username>\source\repos\<project>. That is 34 characters before project.
161+
# The default project name for the C++ SDK is azure-sdk-for-cpp. That is 18 additional characters (52).
162+
# Assuming that the user is building with the default cmake presets, cmake will create a build folder
163+
# which is about 25 characters long (x64-static-debug-perftests).
164+
- template: /eng/common/pipelines/templates/steps/verify-path-length.yml
165+
parameters:
166+
SourceDirectory: $(Build.SourcesDirectory)
167+
BasePathLength: 75
168+
158169
- template: /eng/common/pipelines/templates/steps/verify-links.yml
159170
parameters:
160171
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:

0 commit comments

Comments
 (0)