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

This commit is contained in:
trop[bot]
2019-11-20 14:23:13 -05:00
committed by John Kleinschmidt
parent 09f5a2b741
commit 7a7b944c74

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')