@@ -13,6 +13,14 @@ variables:
13
13
value : https://localhost:8081
14
14
- name : _CosmosToken
15
15
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 : ' '
16
24
17
25
# used for post-build phases, internal builds only
18
26
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
@@ -69,7 +77,15 @@ stages:
69
77
- script : " echo ##vso[build.addbuildtag]release-candidate"
70
78
condition : and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['IsFinalBuild'], 'true'))
71
79
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)
73
89
env :
74
90
Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
75
91
name : Build
@@ -99,7 +115,15 @@ stages:
99
115
- bash : brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/835ae521c065524abdf66578e68032fa24bce514/Formula/libspatialite.rb
100
116
displayName : Install SpatiaLite
101
117
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)
103
127
env :
104
128
Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
105
129
name : Build
@@ -134,9 +158,17 @@ stages:
134
158
echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"
135
159
echo "##vso[task.setvariable variable=_CosmosToken]$(ef-pr-cosmos-test)"
136
160
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 :
140
172
Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
141
173
Test__Cosmos__AuthToken : $(_CosmosToken)
142
174
name : Build
0 commit comments