|
8 | 8 | include:
|
9 | 9 | - 'main'
|
10 | 10 | - 'stable/*'
|
| 11 | + - 'gh-readonly-queue/*' |
11 | 12 | tags:
|
12 | 13 | include:
|
13 | 14 | - '*'
|
@@ -126,8 +127,10 @@ stages:
|
126 | 127 | id: 7864
|
127 | 128 | comment: Nightly test job failed at commit $(Build.SourceVersion). View the logs at $(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId).
|
128 | 129 |
|
129 |
| - # Full PR suite. |
130 |
| - - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: |
| 130 | + # Full PR suite. This also needs to apply to the merge queue, which appears |
| 131 | + # as a push event. The queue won't get cron triggered because the schedule |
| 132 | + # trigger doesn't have it as a target. |
| 133 | + - ${{ if or(eq(variables['Build.Reason'], 'PullRequest'), contains(variables['Build.SourceBranch'], 'gh-readonly-queue')) }}: |
131 | 134 | # The preliminary stage should be small in both total runtime (including
|
132 | 135 | # provisioning) and resources required. About half of PR commits result in
|
133 | 136 | # a CI failure, and over 90% of these are in linting, documention or a test
|
@@ -188,9 +191,9 @@ stages:
|
188 | 191 | parameters:
|
189 | 192 | pythonVersion: ${{ parameters.maximumPythonVersion }}
|
190 | 193 |
|
191 |
| - # Push to main or the stable branches. The triggering branches are set in the |
192 |
| - # triggers at the top of this file. |
193 |
| - - ${{ if and(eq(variables['Build.Reason'], 'IndividualCI'), startsWith(variables['Build.SourceBranch'], 'refs/heads/')) }}: |
| 194 | + # Push to main or the stable branches. The triggering branches also need to |
| 195 | + # be in the triggers at the top of this file. |
| 196 | + - ${{ if and(eq(variables['Build.Reason'], 'IndividualCI'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/stable/'))) }}: |
194 | 197 | - stage: "Push"
|
195 | 198 | jobs:
|
196 | 199 | - template: ".azure/test-linux.yml"
|
|
0 commit comments