build: update release build endpoint from /jobs to /job (#21232)

This commit is contained in:
Samuel Attard 2019-11-20 11:14:48 -08:00 committed by GitHub
parent 0111f6216c
commit 41f1569c46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ async function getCircleCIWorkflowId (pipelineId) {
}
async function getCircleCIJobNumber (workflowId) {
const jobInfoUrl = `https://circleci.com/api/v2/workflow/${workflowId}/jobs`
const jobInfoUrl = `https://circleci.com/api/v2/workflow/${workflowId}/job`
let jobNumber = 0
while (jobNumber === 0) {
const jobInfo = await circleCIRequest(jobInfoUrl, 'GET')