You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError("Did not find any files that match path:"+input_binary_path);
55
+
}
56
+
if(files.length>maxUploadFiles){
57
+
thrownewError(
58
+
"Too many files ("+files.length+") match the provided glob pattern; please write a more restrictive pattern to match no more than "+maxUploadFiles+" files."
59
+
);
60
+
}
61
+
62
+
console.log("Found "+files.length+" files to upload.");
63
+
64
+
// Upload all the files that matched the file path
65
+
letfile_idx: number=1;
66
+
letoutput: Array<any>=[]
67
+
for(constfile_pathoffiles){
68
+
if(!fs.existsSync(file_path)){
69
+
thrownewError("Could not access file:"+file_path);
34
70
}
35
-
if(!input_binary_path){
36
-
thrownewError(
37
-
"UPLOAD_BINARY_PATH must be set!"
38
-
);
71
+
72
+
console.log("Processing file "+file_path+" ("+file_idx+" of "+files.length+").");
"Did not find any files that match path:"+input_binary_path
45
-
);
81
+
// only append optional fields if explicitly set
82
+
if(username){
83
+
form.append("username",username);
84
+
console.log("DAST username set to: "+username);
46
85
}
47
-
if(files.length>maxUploadFiles){
48
-
thrownewError(
49
-
"Too many files ("+files.length+") match the provided glob pattern; please write a more restrictive pattern to match no more than "+maxUploadFiles+" files."
50
-
);
86
+
if(password){
87
+
form.append("password",password);
88
+
console.log("DAST password is set to: (hidden)");
89
+
}
90
+
if(comments){
91
+
form.append("comments",comments);
92
+
console.log("Comments are set to: "+comments);
93
+
}
94
+
if(release_id){
95
+
form.append("release_Id",release_id);
96
+
console.log("Release ID is set to: "+release_id);
97
+
}
98
+
if(platform_variant){
99
+
form.append("platform_variant",platform_variant);
100
+
console.log("Platform variant is set to: "+platform_variant);
101
+
}
102
+
if(external_id){
103
+
form.append("external_id",external_id);
104
+
console.log("External ID is set to: "+external_id);
51
105
}
52
-
53
-
console.log("Found "+files.length+" files to upload.");
54
-
55
-
// Upload all the files that matched the file path
56
-
letfile_idx: number=1;
57
-
letoutput: Array<any>=[]
58
-
for(constfile_pathoffiles){
59
-
if(!fs.existsSync(file_path)){
60
-
thrownewError("Could not access file:"+file_path);
61
-
}
62
106
63
-
console.log("Processing file "+file_path+" ("+file_idx+" of "+files.length+").");
0 commit comments