Browse Source

build: add support for spawning builds for a specific commit on appveyor (#29971) (#29981)

Co-authored-by: Samuel Attard <[email protected]>
trop[bot] 3 years ago
parent
commit
8d37253f5d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      script/release/ci-release-build.js

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

@@ -230,6 +230,7 @@ async function callAppVeyor (targetBranch, job, options) {
       accountName: 'electron-bot',
       projectSlug: appVeyorJobs[job],
       branch: targetBranch,
+      commitId: options.commit || undefined,
       environmentVariables
     }),
     method: 'POST'
@@ -365,7 +366,7 @@ if (require.main === module) {
   if (args._.length < 1) {
     console.log(`Trigger CI to build release builds of electron.
     Usage: ci-release-build.js [--job=CI_JOB_NAME] [--ci=CircleCI|AppVeyor|VSTS|DevOps]
-    [--ghRelease] [--armTest] [--circleBuildNum=xxx] [--appveyorJobId=xxx] TARGET_BRANCH
+    [--ghRelease] [--armTest] [--circleBuildNum=xxx] [--appveyorJobId=xxx] [--commit=sha] TARGET_BRANCH
     `);
     process.exit(0);
   }