Skip to content

Commit 6a217b6

Browse files
committed
🐛 fix for build artifacts
1 parent e278e43 commit 6a217b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/helpers/buildArtifacts.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs, buildR
213213
let messageType = null;
214214
let errorCode = null;
215215
let buildDetails = null;
216-
const config = {};
216+
options.config = {
217+
auth: options.auth,
218+
headers: options.headers
219+
}
217220
if(process.env.HTTP_PROXY){
218221
options.config.proxy = false;
219222
options.config.httpAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
@@ -222,7 +225,7 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs, buildR
222225
options.config.httpAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
223226
}
224227
try {
225-
const response = await axios.get(options.url, config);
228+
const response = await axios.get(options.url, options.config);
226229
try {
227230
buildDetails = response.data;
228231
if(response.status != 200) {

0 commit comments

Comments
 (0)