Browse Source

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

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
trop[bot] 6 years ago
parent
commit
f119e4cc4b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      script/ci-release-build.js

+ 2 - 1
script/ci-release-build.js

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