Skip to content

Commit c0732de

Browse files
committed
changes
1 parent f1b31b6 commit c0732de

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

bin/commands/runs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ module.exports = function run(args, rawArgs) {
365365
await new Promise(resolve => setTimeout(resolve, 5000));
366366

367367
// download build artifacts
368-
if (exitCode != Constants.BUILD_FAILED_EXIT_CODE && !turboScaleSession) {
368+
if (exitCode != Constants.BUILD_FAILED_EXIT_CODE) {
369369
if (utils.nonEmptyArray(bsConfig.run_settings.downloads)) {
370370
logger.debug("Downloading build artifacts");
371371
await downloadBuildArtifacts(bsConfig, data.build_id, args, rawArgs, buildReportData);

bin/helpers/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ config.configJsonFileName = 'tmpCypressConfig.json';
2929

3030
// turboScale
3131
config.turboScaleMd5Sum = `${config.turboScaleUrl}/md5sumcheck`;
32-
config.turboScaleBuildsUrl = `${config.turboScaleUrl}/builds`;
32+
config.turboScaleBuildsUrl = `${config.turboScaleAPIUrl}/builds`;
3333

3434
module.exports = config;

bin/helpers/reporterHTML.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ let reportGenerator = (bsConfig, buildId, args, rawArgs, buildReportData, cb) =>
1919
},
2020
};
2121

22+
if (Constants.turboScaleObj.enabled) {
23+
options.url = `${config.turboScaleBuildsUrl}/${buildId}/custom_report`;
24+
}
25+
2226
logger.debug('Started fetching the build json and html reports.');
2327

2428
return request.get(options, async function (err, resp, body) {

0 commit comments

Comments
 (0)