Skip to content

Commit 5ac2140

Browse files
Karan NagpalKaran Nagpal
authored andcommitted
don't call build artifacts if downloads key empty or nil
1 parent 834cf6d commit 5ac2140

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/commands/runs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ module.exports = function run(args) {
136136
await new Promise(resolve => setTimeout(resolve, 5000));
137137

138138
// download build artifacts
139-
await downloadBuildArtifacts(bsConfig, data.build_id, args);
139+
if (!utils.isUndefined(bsConfig.run_settings.downloads) && bsConfig.run_settings.downloads.length) {
140+
await downloadBuildArtifacts(bsConfig, data.build_id, args);
141+
}
140142

141143
// Generate custom report!
142144
reportGenerator(bsConfig, data.build_id, args, function(){

0 commit comments

Comments
 (0)