@@ -70,10 +70,8 @@ function download_artefact(
70
70
if ( resp . body != null ) {
71
71
const responseObject = JSON . parse ( resp . body ) ;
72
72
const dataValue = responseObject . data ;
73
- // console.log("Could not download artefacts with reason " + dataValue+ " for testID " + test_id)
74
73
reject ( "Could not download artefacts for test id " + test_id + " with reason " + dataValue ) ;
75
74
}
76
- // console.log("Could not download artefacts with reason " + resp.body + " for testID " + test_id)
77
75
reject ( "Could not download artefacts for test id " + test_id ) ;
78
76
}
79
77
} )
@@ -105,7 +103,6 @@ function generate_report(args) {
105
103
} else {
106
104
reject ( "Access Key not provided" ) ;
107
105
}
108
- console . log ( "Generating report - step 3" )
109
106
//Check for session id
110
107
if (
111
108
! ( "session_id" in args ) ||
@@ -132,7 +129,6 @@ function generate_report(args) {
132
129
) ;
133
130
}
134
131
}
135
- console . log ( "Generating report - step 3" )
136
132
//set working enviornment
137
133
var env = "prod" ;
138
134
if ( "env" in args ) {
@@ -193,7 +189,6 @@ function generate_report(args) {
193
189
fs . mkdirSync ( directory , { recursive : true } ) ;
194
190
console . log ( "Directory created " , directory ) ;
195
191
}
196
- console . log ( "Generating report - step 4" )
197
192
const downloadPromises = [ ] ;
198
193
199
194
for ( i = 0 ; i < build_info [ "data" ] . length ; i ++ ) {
@@ -211,10 +206,7 @@ function generate_report(args) {
211
206
build_payload [ "run_settings" ] [ "reject_unauthorized" ]
212
207
)
213
208
downloadPromises . push ( downloadPromise )
214
- console . log ( "Generating report - step 5" )
215
209
}
216
- // wait here till all the files are downloaded
217
- // await Promise.all(downloadPromises);
218
210
219
211
Promise . allSettled ( downloadPromises )
220
212
. then ( ( results ) => {
@@ -234,8 +226,6 @@ function generate_report(args) {
234
226
resolve ( "Done" ) ;
235
227
} ) ;
236
228
237
- // resolve("Done");
238
- console . log ( "Generating report - step 6" )
239
229
} )
240
230
. catch ( function ( err ) {
241
231
console . log ( "Error occured while getting the build response" , err ) ;
0 commit comments