Skip to content

Commit 84c7e25

Browse files
committed
Try adding additional env variables.
1 parent 77f6606 commit 84c7e25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public void run() {
8787
set -o pipefail
8888
set -e
8989
90+
export http_proxy=http://localhost:8080
91+
export https_proxy=${http_proxy}
92+
export HTTP_PROXY=${http_proxy}
93+
export HTTPS_PROXY=${http_proxy}
9094
#fix this when we no longer need to run as root
9195
export HOME=${HOME:=/root}
9296
# Custom base working directory.
@@ -179,6 +183,8 @@ private String getContainerFile() {
179183
ENV PROXY_URL=$PROXY_URL
180184
ENV http_proxy=http://localhost:8080
181185
ENV https_proxy=${http_proxy}
186+
ENV HTTP_PROXY=${http_proxy}
187+
ENV HTTPS_PROXY=${http_proxy}
182188
COPY .jbs/run-build.sh /var/workdir
183189
COPY . /var/workdir/workspace/source/
184190
RUN /var/workdir/run-build.sh

0 commit comments

Comments
 (0)