chore: make macOS release builds higher priority to skip the queue (#15276)

Release builds should be run before branch builds on our limited macOS
infra.

Refs: https://docs.microsoft.com/en-us/rest/api/vsts/build/builds/queue?view=vsts-rest-4.1#queuepriority
This commit is contained in:
Samuel Attard 2018-10-19 23:56:40 +11:00 committed by GitHub
parent 94aa0762f0
commit 16dcc464cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,7 +177,8 @@ async function buildVSTS (targetBranch, options) {
async function callVSTSBuild (build, targetBranch, environmentVariables) {
const buildBody = {
definition: build,
sourceBranch: targetBranch
sourceBranch: targetBranch,
priority: 'high'
}
if (Object.keys(environmentVariables).length !== 0) {
buildBody.parameters = JSON.stringify(environmentVariables)