Skip to content

Commit

Permalink
Merged PR 28999: Do not set up nuget sources for source build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mmitche committed Jan 19, 2023
1 parent 8b3d962 commit 1675784
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ jobs:
- ${{ if eq(parameters.isOfficialBuild, true) }}:
- template: /eng/pipelines/common/restore-internal-tools.yml

- ${{ if ne(variables['System.TeamProject'], 'public') }}:
# Do not set up nuget sources for source build because 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.
- ${{ if and(ne(variables['System.TeamProject'], 'public'), ne(parameters.buildingOnSourceBuildImage, true)) }}:
- ${{ if ne(parameters.osGroup, 'windows') }}:
- task: Bash@3
displayName: Setup Private Feeds Credentials
Expand Down

0 comments on commit 1675784

Please sign in to comment.