Skip to content

Commit 1675784

Browse files
committed
Merged PR 28999: Do not set up nuget sources for source build
Do not set up nuget sources for source build The source build scripts already do this. This will cause the working tree to be dirty, which breaks the stash command when shallow clones are used, like in CI or official builds.
1 parent 8b3d962 commit 1675784

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eng/pipelines/common/global-build-job.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ jobs:
129129
- ${{ if eq(parameters.isOfficialBuild, true) }}:
130130
- template: /eng/pipelines/common/restore-internal-tools.yml
131131

132-
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
132+
# Do not set up nuget sources for source build because the source build scripts already do this.
133+
# This will cause the working tree to be dirty, which breaks the stash command when shallow clones are used, like in CI or official builds.
134+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), ne(parameters.buildingOnSourceBuildImage, true)) }}:
133135
- ${{ if ne(parameters.osGroup, 'windows') }}:
134136
- task: Bash@3
135137
displayName: Setup Private Feeds Credentials

0 commit comments

Comments
 (0)