File tree Expand file tree Collapse file tree 4 files changed +1
-58
lines changed Expand file tree Collapse file tree 4 files changed +1
-58
lines changed Original file line number Diff line number Diff line change 9
9
handleError,
10
10
} = require ( './utils' ) ;
11
11
12
- const checkEnvironmentVariables = require ( './shared-commands/check-environment-variables' ) ;
13
12
const downloadBuildArtifacts = require ( './shared-commands/download-build-artifacts' ) ;
14
13
const parseParams = require ( './shared-commands/parse-params' ) ;
15
14
const printSummary = require ( './download-experimental-build-commands/print-summary' ) ;
@@ -26,7 +25,6 @@ const run = async () => {
26
25
params . cwd = join ( __dirname , '..' , '..' ) ;
27
26
params . packages = await getPublicPackages ( true ) ;
28
27
29
- await checkEnvironmentVariables ( params ) ;
30
28
await downloadBuildArtifacts ( params ) ;
31
29
32
30
printSummary ( params ) ;
Original file line number Diff line number Diff line change 5
5
const { join} = require ( 'path' ) ;
6
6
const { addDefaultParamValue, handleError} = require ( './utils' ) ;
7
7
8
- const checkEnvironmentVariables = require ( './shared-commands/check-environment-variables' ) ;
9
8
const downloadBuildArtifacts = require ( './shared-commands/download-build-artifacts' ) ;
10
9
const parseParams = require ( './shared-commands/parse-params' ) ;
11
10
const printPrereleaseSummary = require ( './shared-commands/print-prerelease-summary' ) ;
@@ -19,7 +18,6 @@ const run = async () => {
19
18
const params = await parseParams ( ) ;
20
19
params . cwd = join ( __dirname , '..' , '..' ) ;
21
20
22
- await checkEnvironmentVariables ( params ) ;
23
21
await downloadBuildArtifacts ( params ) ;
24
22
25
23
if ( ! params . skipTests ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -58,31 +58,8 @@ const extractCommitFromVersionNumber = version => {
58
58
} ;
59
59
60
60
const getArtifactsList = async buildID => {
61
- const buildMetadataURL = `https://circleci.com/api/v1.1/project/github/facebook/react/${ buildID } ?circle-token=${ process . env . CIRCLE_CI_API_TOKEN } ` ;
62
- const buildMetadata = await http . get ( buildMetadataURL , true ) ;
63
- if ( ! buildMetadata . workflows || ! buildMetadata . workflows . workflow_id ) {
64
- console . log (
65
- theme `{error Could not find workflow info for build ${ buildID } .}`
66
- ) ;
67
- process . exit ( 1 ) ;
68
- }
69
- const artifactsJobName = 'process_artifacts_combined' ;
70
- const workflowID = buildMetadata . workflows . workflow_id ;
71
- const workflowMetadataURL = `https://circleci.com/api/v2/workflow/${ workflowID } /job?circle-token=${ process . env . CIRCLE_CI_API_TOKEN } ` ;
72
- const workflowMetadata = await http . get ( workflowMetadataURL , true ) ;
73
- const job = workflowMetadata . items . find (
74
- ( { name} ) => name === artifactsJobName
75
- ) ;
76
- if ( ! job || ! job . job_number ) {
77
- console . log (
78
- theme `{error Could not find "${ artifactsJobName } " job for workflow ${ workflowID } .}`
79
- ) ;
80
- process . exit ( 1 ) ;
81
- }
82
-
83
- const jobArtifactsURL = `https://circleci.com/api/v1.1/project/github/facebook/react/${ job . job_number } /artifacts?circle-token=${ process . env . CIRCLE_CI_API_TOKEN } ` ;
61
+ const jobArtifactsURL = `https://circleci.com/api/v1.1/project/github/facebook/react/${ buildID } /artifacts` ;
84
62
const jobArtifacts = await http . get ( jobArtifactsURL , true ) ;
85
-
86
63
return jobArtifacts ;
87
64
} ;
88
65
You can’t perform that action at this time.
0 commit comments