Skip to content

Commit 2b962b4

Browse files
committed
update Dockerfiles to use 'source' for script execution in JDK test commands
1 parent f5590e5 commit 2b962b4

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

common/jenkins-agents/jdk/docker/Dockerfile.ubi8

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ RUN chmod +x /usr/local/bin/use-j*.sh && \
3737
sh -c 'chmod ugo+s $(which alternatives)' && \
3838
ls -la /usr/local/bin/use-j*.sh && \
3939
echo "--- STARTS JDK 11/17/21/25 TESTS ---" && \
40-
use-j11.sh && \
41-
use-j17.sh && \
42-
use-j25.sh && \
43-
use-j21.sh && \
40+
source use-j11.sh && \
41+
source use-j17.sh && \
42+
source use-j25.sh && \
43+
source use-j21.sh && \
4444
echo "--- ENDS JDK 11/17/21/25 TESTS ---"
4545

4646
# Set maven (nexus+proxy) and gradle (proxy) settings

common/jenkins-agents/jdk/docker/Dockerfile.ubi9

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ RUN chmod +x /usr/local/bin/use-j*.sh && \
3737
sh -c 'chmod ugo+s $(which alternatives)' && \
3838
ls -la /usr/local/bin/use-j*.sh && \
3939
echo "--- STARTS JDK 11/17/21/25 TESTS ---" && \
40-
use-j11.sh && \
41-
use-j17.sh && \
42-
use-j25.sh && \
43-
use-j21.sh && \
40+
source use-j11.sh && \
41+
source use-j17.sh && \
42+
source use-j25.sh && \
43+
source use-j21.sh && \
4444
echo "--- ENDS JDK 11/17/21/25 TESTS ---"
4545

4646
# Set maven (nexus+proxy) and gradle (proxy) settings

common/jenkins-agents/scala/docker/Dockerfile.ubi8

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ RUN chmod +x /usr/local/bin/use-j*.sh && \
2626
sh -c 'chmod ugo+s $(which alternatives)' && \
2727
ls -la /usr/local/bin/use-j*.sh && \
2828
echo "--- STARTS JDK 11/17/21 TESTS ---" && \
29-
use-j11.sh && \
30-
use-j17.sh && \
31-
use-j21.sh && \
29+
source use-j11.sh && \
30+
source use-j17.sh && \
31+
source use-j21.sh && \
3232
echo "--- ENDS JDK 11/17/21 TESTS ---"
3333

3434
COPY sbtconfig/repositories $HOME/.sbt/repositories

common/jenkins-agents/scala/docker/Dockerfile.ubi9

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ RUN chmod +x /usr/local/bin/use-j*.sh && \
2626
sh -c 'chmod ugo+s $(which alternatives)' && \
2727
ls -la /usr/local/bin/use-j*.sh && \
2828
echo "--- STARTS JDK 11/17/21 TESTS ---" && \
29-
use-j11.sh && \
30-
use-j17.sh && \
31-
use-j21.sh && \
29+
source use-j11.sh && \
30+
source use-j17.sh && \
31+
source use-j21.sh && \
3232
echo "--- ENDS JDK 11/17/21 TESTS ---"
3333

3434
COPY sbtconfig/repositories $HOME/.sbt/repositories

0 commit comments

Comments
 (0)