Skip to content

Commit

Permalink
chore: make macOS release builds higher priority to skip the queue (e…
Browse files Browse the repository at this point in the history
…lectron#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
  • Loading branch information
MarshallOfSound authored Oct 19, 2018
1 parent 94aa076 commit 16dcc46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/ci-release-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16dcc46

Please sign in to comment.