Avoid sending status reports in test mode
This commit is contained in:
parent
e9d52340a3
commit
36419a79c1
6 changed files with 16 additions and 2 deletions
1
lib/upload-lib.js
generated
1
lib/upload-lib.js
generated
|
|
@ -95,6 +95,7 @@ async function uploadPayload(payload, repositoryNwo, apiDetails, logger) {
|
|||
// If in test mode we don't want to upload the results
|
||||
const testMode = process.env["TEST_MODE"] === "true" || false;
|
||||
if (testMode) {
|
||||
logger.debug("In test mode. Results are not uploaded.");
|
||||
return;
|
||||
}
|
||||
const client = api.getApiClient(apiDetails);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue