Skip to content

Commit b4fafb2

Browse files
committed
removed comments
1 parent 011ba8e commit b4fafb2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

commands/generate_reports.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ function download_artefact(
7070
if (resp.body != null) {
7171
const responseObject = JSON.parse(resp.body);
7272
const dataValue = responseObject.data;
73-
// console.log("Could not download artefacts with reason " + dataValue+ " for testID " + test_id)
7473
reject("Could not download artefacts for test id " + test_id + " with reason " + dataValue);
7574
}
76-
// console.log("Could not download artefacts with reason " + resp.body + " for testID " + test_id)
7775
reject("Could not download artefacts for test id " + test_id);
7876
}
7977
})
@@ -105,7 +103,6 @@ function generate_report(args) {
105103
} else {
106104
reject("Access Key not provided");
107105
}
108-
console.log("Generating report - step 3")
109106
//Check for session id
110107
if (
111108
!("session_id" in args) ||
@@ -132,7 +129,6 @@ function generate_report(args) {
132129
);
133130
}
134131
}
135-
console.log("Generating report - step 3")
136132
//set working enviornment
137133
var env = "prod";
138134
if ("env" in args) {
@@ -193,7 +189,6 @@ function generate_report(args) {
193189
fs.mkdirSync(directory, { recursive: true });
194190
console.log("Directory created ", directory);
195191
}
196-
console.log("Generating report - step 4")
197192
const downloadPromises = [];
198193

199194
for (i = 0; i < build_info["data"].length; i++) {
@@ -211,10 +206,7 @@ function generate_report(args) {
211206
build_payload["run_settings"]["reject_unauthorized"]
212207
)
213208
downloadPromises.push(downloadPromise)
214-
console.log("Generating report - step 5")
215209
}
216-
// wait here till all the files are downloaded
217-
// await Promise.all(downloadPromises);
218210

219211
Promise.allSettled(downloadPromises)
220212
.then((results) => {
@@ -234,8 +226,6 @@ function generate_report(args) {
234226
resolve("Done");
235227
});
236228

237-
// resolve("Done");
238-
console.log("Generating report - step 6")
239229
})
240230
.catch(function (err) {
241231
console.log("Error occured while getting the build response", err);

0 commit comments

Comments
 (0)