@@ -70,23 +70,23 @@ stages:
7070 inputs :
7171 pathtoPublish : " $(Build.SourcesDirectory)/generated/docs"
7272 artifactName : docs
73- condition : and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
7473
7574 - task : InstallSSHKey@0
7675 inputs :
7776 hostName : " github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=="
7877 sshPublicKey : " $(DocsPublicKey)"
7978 sshPassphrase : " $(SshDeployKeyPassphrase)"
8079 sshKeySecureFile : " $(DocsPrivateKey)"
81- condition : and(succeeded(), ne (variables['Build.Reason '], 'PullRequest' ), eq (variables['PostSubmit '], true))
80+ condition : and(succeeded(), eq (variables['PostSubmit '], true ), ne (variables['NoSync '], true))
8281
8382 - script : docs/publish.sh
8483 displayName : " Publish to GitHub"
8584 workingDirectory : $(Build.SourcesDirectory)
8685 env :
8786 AZP_BRANCH : $(Build.SourceBranch)
8887 AZP_SHA1 : $(Build.SourceVersion)
89- condition : and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['PostSubmit'], true))
88+ condition : and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true))
89+
9090 - job : dependencies
9191 dependsOn : [] # this removes the implicit dependency on previous stage and causes this to run in parallel.
9292 pool :
@@ -102,9 +102,8 @@ stages:
102102 GITHUB_TOKEN : $(GitHubPublicRepoOnlyAccessToken)
103103 displayName : " Verify dependency information"
104104
105-
106105 - stage : sync
107- condition : and(succeeded(), eq(variables['PostSubmit'], true))
106+ condition : and(succeeded(), eq(variables['PostSubmit'], true), ne(variables['NoSync'], true) )
108107 dependsOn : []
109108 jobs :
110109 - job : filter_example
@@ -145,6 +144,8 @@ stages:
145144
146145 - job : go_control_plane
147146 dependsOn : []
147+ pool :
148+ vmImage : " ubuntu-18.04"
148149 steps :
149150 - task : InstallSSHKey@0
150151 inputs :
@@ -167,12 +168,11 @@ stages:
167168
168169 - stage : linux_x64
169170 dependsOn : ["precheck"]
170- # For master builds, continue even if precheck fails
171- condition : and(not(canceled()), or(succeeded(), ne (variables['Build.Reason '], 'PullRequest' )))
171+ # For post-submit builds, continue even if precheck fails
172+ condition : and(not(canceled()), or(succeeded(), eq (variables['PostSubmit '], true )))
172173 jobs :
173174 - job : release
174- # For master builds, continue even if format fails
175- timeoutInMinutes : 360
175+ timeoutInMinutes : 120
176176 pool :
177177 vmImage : " ubuntu-18.04"
178178 steps :
@@ -182,11 +182,11 @@ stages:
182182
183183 - stage : linux_arm64
184184 dependsOn : ["precheck"]
185- # For master builds, continue even if precheck fails
186- condition : and(not(canceled()), or(succeeded(), ne (variables['Build.Reason '], 'PullRequest' )))
185+ # For post-submit builds, continue even if precheck fails
186+ condition : and(not(canceled()), or(succeeded(), eq (variables['PostSubmit '], true )))
187187 jobs :
188188 - job : release
189- timeoutInMinutes : 360
189+ timeoutInMinutes : 120
190190 pool : " arm-large"
191191 steps :
192192 - template : bazel.yml
@@ -218,7 +218,7 @@ stages:
218218 CI_TARGET : " bazel.tsan"
219219 compile_time_options :
220220 CI_TARGET : " bazel.compile_time_options"
221- timeoutInMinutes : 360
221+ timeoutInMinutes : 120
222222 pool :
223223 vmImage : " ubuntu-18.04"
224224 steps :
@@ -229,7 +229,7 @@ stages:
229229 - job : coverage
230230 displayName : " linux_x64"
231231 dependsOn : []
232- timeoutInMinutes : 360
232+ timeoutInMinutes : 120
233233 pool : " x64-large"
234234 strategy :
235235 maxParallel : 2
@@ -328,7 +328,7 @@ stages:
328328 dependsOn : ["precheck"]
329329 jobs :
330330 - job : test
331- timeoutInMinutes : 360
331+ timeoutInMinutes : 180
332332 pool :
333333 vmImage : " macos-latest"
334334 steps :
@@ -362,7 +362,7 @@ stages:
362362 dependsOn : ["precheck"]
363363 jobs :
364364 - job : release
365- timeoutInMinutes : 360
365+ timeoutInMinutes : 120
366366 pool :
367367 vmImage : " windows-latest"
368368 steps :
@@ -383,7 +383,7 @@ stages:
383383
384384 - job : docker
385385 dependsOn : ["release"]
386- timeoutInMinutes : 360
386+ timeoutInMinutes : 120
387387 pool :
388388 vmImage : " windows-latest"
389389 steps :
0 commit comments