|
71 | 71 | variables: |
72 | 72 | - ${{ if eq(variables['System.TeamProject'], 'internal') }}: |
73 | 73 | - group: DotNet-HelixApi-Access |
| 74 | + - group: AzureDevOps-Artifact-Feeds-Pats |
74 | 75 |
|
75 | 76 | - name: _osParameter |
76 | 77 | value: -os ${{ parameters.osGroup }} |
@@ -128,6 +129,26 @@ jobs: |
128 | 129 | - ${{ if eq(parameters.isOfficialBuild, true) }}: |
129 | 130 | - template: /eng/pipelines/common/restore-internal-tools.yml |
130 | 131 |
|
| 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)) }}: |
| 135 | + - ${{ if ne(parameters.osGroup, 'windows') }}: |
| 136 | + - task: Bash@3 |
| 137 | + displayName: Setup Private Feeds Credentials |
| 138 | + inputs: |
| 139 | + filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh |
| 140 | + arguments: $(Build.SourcesDirectory)/NuGet.config $Token |
| 141 | + env: |
| 142 | + Token: $(dn-bot-dnceng-artifact-feeds-rw) |
| 143 | + - ${{ if eq(parameters.osGroup, 'windows') }}: |
| 144 | + - task: PowerShell@2 |
| 145 | + displayName: Setup Private Feeds Credentials |
| 146 | + inputs: |
| 147 | + filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 |
| 148 | + arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token |
| 149 | + env: |
| 150 | + Token: $(dn-bot-dnceng-artifact-feeds-rw) |
| 151 | + |
131 | 152 | - ${{ each monoCrossAOTTargetOS in parameters.monoCrossAOTTargetOS }}: |
132 | 153 | - task: DownloadPipelineArtifact@2 |
133 | 154 | displayName: Download ${{monoCrossAOTTargetOS}} AOT offset files |
|
0 commit comments