Skip to content

Commit 6e979b9

Browse files
Added variable for CI
1 parent 1a67f59 commit 6e979b9

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

JeMPI_Apps/build-all-ci.sh

+10-9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -e
44
set -u
55

6+
CI=${CI:-true}
67
if [ $# -eq 0 ]; then
78
tag_to_use="ci-test-main"
89
else
@@ -25,29 +26,29 @@ popd
2526
docker buildx create --name container --driver=docker-container
2627

2728
pushd JeMPI_AsyncReceiver
28-
CI=true TAG=$tag_to_use ./build.sh || exit 1
29+
$CI TAG=$tag_to_use ./build.sh || exit 1
2930
popd
3031
pushd JeMPI_ETL
31-
CI=true TAG=$tag_to_use ./build.sh || exit 1
32+
$CI TAG=$tag_to_use ./build.sh || exit 1
3233
popd
3334
pushd JeMPI_Controller
34-
CI=true TAG=$tag_to_use ./build.sh || exit 1
35+
$CI TAG=$tag_to_use ./build.sh || exit 1
3536
popd
3637
pushd JeMPI_EM_Scala
37-
CI=true TAG=$tag_to_use ./build.sh || exit 1
38+
$CI TAG=$tag_to_use ./build.sh || exit 1
3839
popd
3940
pushd JeMPI_Linker
40-
CI=true TAG=$tag_to_use ./build.sh || exit 1
41+
$CI TAG=$tag_to_use ./build.sh || exit 1
4142
popd
4243
pushd JeMPI_API
43-
CI=true TAG=$tag_to_use ./build.sh || exit 1
44+
$CI TAG=$tag_to_use ./build.sh || exit 1
4445
popd
4546
pushd JeMPI_API_KC
46-
CI=true TAG=$tag_to_use ./build.sh || exit 1
47+
$CI TAG=$tag_to_use ./build.sh || exit 1
4748
popd
4849
pushd JeMPI_Bootstrapper
49-
CI=true TAG=$tag_to_use ./build.sh || exit 1
50+
$CI TAG=$tag_to_use ./build.sh || exit 1
5051
popd
5152
pushd JeMPI_UI
52-
CI=true TAG=$tag_to_use ./build-image.sh || exit 1
53+
$CI TAG=$tag_to_use ./build-image.sh || exit 1
5354
popd

JeMPI_Apps/build-all-java.sh

+9-8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -u
66
cp -L -f ./JeMPI_Configuration/config-api.json ./JeMPI_API/src/main/resources/config-api.json
77
cp -L -f ./JeMPI_Configuration/config-api.json ./JeMPI_API_KC/src/main/resources/config-api.json
88

9+
CI=${CI:-false}
910
if [ $# -eq 0 ]; then
1011
tag_to_use="ci-test-main"
1112
else
@@ -17,28 +18,28 @@ pushd JeMPI_EM_Scala
1718
popd
1819

1920
pushd JeMPI_AsyncReceiver
20-
CI=false TAG=$tag_to_use ./build.sh || exit 1
21+
$CI TAG=$tag_to_use ./build.sh || exit 1
2122
popd
2223
pushd JeMPI_ETL
23-
CI=false TAG=$tag_to_use ./build.sh || exit 1
24+
$CI TAG=$tag_to_use ./build.sh || exit 1
2425
popd
2526
pushd JeMPI_Controller
26-
CI=false TAG=$tag_to_use ./build.sh || exit 1
27+
$CI TAG=$tag_to_use ./build.sh || exit 1
2728
popd
2829
pushd JeMPI_EM_Scala
29-
CI=false TAG=$tag_to_use ./build.sh || exit 1
30+
$CI TAG=$tag_to_use ./build.sh || exit 1
3031
popd
3132
pushd JeMPI_Linker
32-
CI=false TAG=$tag_to_use ./build.sh || exit 1
33+
$CI TAG=$tag_to_use ./build.sh || exit 1
3334
popd
3435
pushd JeMPI_API
35-
CI=false TAG=$tag_to_use ./build.sh || exit 1
36+
$CI TAG=$tag_to_use ./build.sh || exit 1
3637
popd
3738
pushd JeMPI_API_KC
38-
CI=false TAG=$tag_to_use ./build.sh || exit 1
39+
$CI TAG=$tag_to_use ./build.sh || exit 1
3940
popd
4041
pushd JeMPI_Bootstrapper
41-
CI=false TAG=$tag_to_use ./build.sh || exit 1
42+
$CI TAG=$tag_to_use ./build.sh || exit 1
4243
popd
4344
pushd JeMPI_AsyncReceiver
4445
./push.sh

0 commit comments

Comments
 (0)