Skip to content

Commit 983b9f4

Browse files
committed
SRE-3215 ci: HTTPS_PROXY arg for Docker diagnostic
Add diagnostic about HTTPS_PROXY arg for Docker build Priority: 2 Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
1 parent ce829ac commit 983b9f4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// Then a second PR submitted to comment out the @Library line, and when it
2020
// is landed, both PR branches can be deleted.
2121
//@Library(value='pipeline-lib@my_branch_name') _
22+
@Library(value='pipeline-lib@grom72/sre-3215') _
2223

2324
/* groovylint-disable-next-line CompileStatic */
2425
job_status_internal = [:]

vars/dockerBuildArgs.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,16 @@ String call(Map config = [:]) {
7171

7272
String https_proxy = ''
7373
if (env.DAOS_HTTPS_PROXY) {
74+
println "DAOS_HTTPS_PROXY: $DAOS_HTTPS_PROXY"
7475
https_proxy = env.DAOS_HTTPS_PROXY
7576
} else if (env.HTTPS_PROXY) {
77+
println "HTTPS_PROXY: $HTTPS_PROXY"
7678
https_proxy = env.HTTPS_PROXY
7779
}
7880
if (https_proxy) {
7981
ret_str += ' --build-arg HTTPS_PROXY' + '="' + https_proxy + '"'
82+
} else {
83+
println "WARNING: Missing HTTPS_PROXY variable in Docker build arguments"
8084
}
8185

8286
if (config['qb']) {

0 commit comments

Comments
 (0)