Skip to content

Commit

Permalink
build: move Windows release builds to AppVeyor cloud (#18627)
Browse files Browse the repository at this point in the history
* build: move Windows release builds to AppVeyor cloud

* Use new env variable for AppVeyor cloud server

(cherry picked from commit ca71215)
  • Loading branch information
John Kleinschmidt committed Jun 4, 2019
1 parent 363d0da commit 93655d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.example
@@ -1,7 +1,7 @@
# These env vars are only necessary for creating Electron releases.
# See docs/development/releasing.md

APPVEYOR_TOKEN=
APPVEYOR_CLOUD_TOKEN=
CIRCLE_TOKEN=
ELECTRON_GITHUB_TOKEN=
VSTS_TOKEN=
12 changes: 6 additions & 6 deletions script/ci-release-build.js
Expand Up @@ -2,11 +2,11 @@ require('dotenv-safe').load()

const assert = require('assert')
const request = require('request')
const buildAppVeyorURL = 'https://windows-ci.electronjs.org/api/builds'
const buildAppVeyorURL = 'https://ci.appveyor.com/api/builds'

const appVeyorJobs = {
'electron-x64': 'electron',
'electron-ia32': 'electron-39ng6'
'electron-x64': 'electron-x64-release',
'electron-ia32': 'electron-ia32-release'
}

const circleCIJobs = [
Expand Down Expand Up @@ -104,13 +104,13 @@ async function callAppVeyor (targetBranch, job, options) {
const requestOpts = {
url: buildAppVeyorURL,
auth: {
bearer: process.env.APPVEYOR_TOKEN
bearer: process.env.APPVEYOR_CLOUD_TOKEN
},
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountName: 'AppVeyor',
accountName: 'electron-bot',
projectSlug: appVeyorJobs[job],
branch: targetBranch,
environmentVariables
Expand All @@ -120,7 +120,7 @@ async function callAppVeyor (targetBranch, job, options) {
let appVeyorResponse = await makeRequest(requestOpts, true).catch(err => {
console.log('Error calling AppVeyor:', err)
})
const buildUrl = `https://windows-ci.electronjs.org/project/AppVeyor/${appVeyorJobs[job]}/build/${appVeyorResponse.version}`
const buildUrl = `https://ci.appveyor.com/project/electron-bot/${appVeyorJobs[job]}/build/${appVeyorResponse.version}`
console.log(`AppVeyor release build request for ${job} successful. Check build status at ${buildUrl}`)
}

Expand Down

0 comments on commit 93655d6

Please sign in to comment.