Skip to content

Commit d42926c

Browse files
authored
Merge pull request #19591 from dotnet-maestro-bot/merge/release/3.1-to-master
[automated] Merge branch 'release/3.1' => 'master'
2 parents 194b164 + ce56183 commit d42926c

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

azure-pipelines.yml

+37-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ variables:
1313
value: https://localhost:8081
1414
- name: _CosmosToken
1515
value: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
16+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
17+
- group: DotNet-MSRC-Storage
18+
- name: _InternalRuntimeDownloadArgs
19+
value: /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet
20+
/p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
21+
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
22+
- name: _InternalRuntimeDownloadArgs
23+
value: ''
1624

1725
# used for post-build phases, internal builds only
1826
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
@@ -69,7 +77,15 @@ stages:
6977
- script: "echo ##vso[build.addbuildtag]release-candidate"
7078
condition: and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['IsFinalBuild'], 'true'))
7179
displayName: 'Set CI tags'
72-
- script: eng\common\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_InternalBuildArgs)
80+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
81+
- task: PowerShell@2
82+
displayName: Setup Private Feeds Credentials
83+
inputs:
84+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
85+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
86+
env:
87+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
88+
- script: eng\common\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_InternalBuildArgs) $(_InternalRuntimeDownloadArgs)
7389
env:
7490
Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)
7591
name: Build
@@ -99,7 +115,15 @@ stages:
99115
- bash: brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/835ae521c065524abdf66578e68032fa24bce514/Formula/libspatialite.rb
100116
displayName: Install SpatiaLite
101117
continueOnError: true
102-
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --binaryLog --prepareMachine
118+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
119+
- task: Bash@3
120+
displayName: Setup Private Feeds Credentials
121+
inputs:
122+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
123+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
124+
env:
125+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
126+
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --binaryLog --prepareMachine $(_InternalRuntimeDownloadArgs)
103127
env:
104128
Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)
105129
name: Build
@@ -134,9 +158,17 @@ stages:
134158
echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"
135159
echo "##vso[task.setvariable variable=_CosmosToken]$(ef-pr-cosmos-test)"
136160
displayName: Prepare to run Cosmos tests on ef-pr-test
137-
condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '1'), endsWith(variables['_runCounter'], '3'), endsWith(variables['_runCounter'], '5'), endsWith(variables['_runCounter'], '7'), endsWith(variables['_runCounter'], '9')))
138-
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine
139-
env:
161+
condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['Build.BuildId'], '1'), endsWith(variables['Build.BuildId'], '3'), endsWith(variables['Build.BuildId'], '5'), endsWith(variables['Build.BuildId'], '7'), endsWith(variables['Build.BuildId'], '9')))
162+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
163+
- task: Bash@3
164+
displayName: Setup Private Feeds Credentials
165+
inputs:
166+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
167+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
168+
env:
169+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
170+
- script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
171+
env:
140172
Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)
141173
Test__Cosmos__AuthToken: $(_CosmosToken)
142174
name: Build

0 commit comments

Comments
 (0)