@@ -161,11 +161,31 @@ extends:
161161 demands : ImageOverride -equals 1es-ubuntu-2204
162162 os : linux
163163 variables :
164- - _runCounter : $[counter(variables['Build.Reason'], 0)]
165164 # Rely on task Arcade injects, not auto-injected build step.
166165 - skipComponentGovernanceDetection : true
167- - ${{ if notin(variables['Build.Reason'], 'PullRequest', 'Schedule') }} :
168- - _CosmosConnectionUrl : ' true'
166+ steps :
167+ - template : /eng/common/templates-official/steps/enable-internal-sources.yml
168+ - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
169+ - script : eng/common/build.sh --restore --build --test --pack --ci --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
170+ env :
171+ Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
172+ displayName : Build
173+ templateContext :
174+ sdl :
175+ binskim :
176+ preReleaseVersion : ' '
177+ - job : Linux_Cosmos
178+ displayName : ' Linux Cosmos'
179+ condition : notin(variables['Build.Reason'], 'PullRequest', 'Schedule')
180+ timeoutInMinutes : 210
181+ pool :
182+ name : $(DncEngInternalBuildPool)
183+ demands : ImageOverride -equals 1es-ubuntu-2204
184+ os : linux
185+ variables :
186+ - _runCounter : $[counter(variables['Build.Reason'], 0)]
187+ - skipComponentGovernanceDetection : true
188+ - _CosmosConnectionUrl : ' true'
169189 steps :
170190 - bash : |
171191 echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-nightly-test.documents.azure.com:443/"
@@ -177,11 +197,10 @@ extends:
177197 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')))
178198 - template : /eng/common/templates-official/steps/enable-internal-sources.yml
179199 - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
180- - script : eng/common/build.sh --restore --build --test -- pack --ci --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
200+ - script : eng/common/build.sh --restore --build --pack --ci --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
181201 displayName : Build
182202 - task : AzureCLI@2
183203 displayName : Run Cosmos tests
184- condition : notin(variables['Build.Reason'], 'PullRequest', 'Schedule')
185204 inputs :
186205 azureSubscription : EFCosmosTesting
187206 addSpnToEnvironment : true
0 commit comments