Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/commands/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ module.exports = function run(args, rawArgs) {
}

// Generate custom report!
reportGenerator(bsConfig, data.build_id, args, rawArgs, buildReportData, function(){
reportGenerator(bsConfig, data.build_id, args, rawArgs, buildReportData, function(modifiedExitCode=exitCode){
utils.sendUsageReport(bsConfig, args, `${message}\n${dashboardLink}`, Constants.messageTypes.SUCCESS, null, buildReportData, rawArgs);
markBlockEnd('postBuild');
utils.handleSyncExit(exitCode, data.dashboard_url);
utils.handleSyncExit(modifiedExitCode, data.dashboard_url);
});
} else if(!turboScaleSession){
let stacktraceUrl = getStackTraceUrl();
Expand Down
3 changes: 3 additions & 0 deletions bin/helpers/reporterHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ let reportGenerator = async (bsConfig, buildId, args, rawArgs, buildReportData,
logger.error('Generating the build report failed.');
logger.error(utils.formatRequest(error.response.statusText, error.response, error.response.data));
utils.sendUsageReport(bsConfig, args, message, messageType, errorCode, buildReportData, rawArgs);
if (cb){
cb(Constants.ERROR_EXIT_CODE);
}
return;
}
}
Expand Down
Loading