Browse Source

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

Samuel Attard 5 years ago
parent
commit
41f1569c46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/release/ci-release-build.js

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

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