Skip to content

Commit 27b9d3d

Browse files
committed
[CI] Pass VERSION into build-folder.sh
1 parent 33d680c commit 27b9d3d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build-app.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ set -e
3030

3131
pushd "$PROJECT_FOLDER" >/dev/null
3232
if [ "$VERSION" == "" ]; then
33+
echo "Determining version number"
3334
VERSION=$($SCDIR/mvn-get-version.sh)
3435
fi
3536

@@ -65,10 +66,10 @@ pushd "$PROJECT_FOLDER" >/dev/null
6566
echo "Deploying:$APP_FOLDER"
6667
if [ -d "src/main/java" ]; then
6768
echo "Deploying:$APP_FOLDER"
68-
$SCDIR/build-folder.sh "." "$MAVEN_GOAL -Pintegration"
69+
VERSION=$VERSION $SCDIR/build-folder.sh "." "$MAVEN_GOAL -Pintegration"
6970
else
7071
echo "Installing:$APP_FOLDER"
71-
$SCDIR/build-folder.sh "." "clean install -Pintegration"
72+
VERSION=$VERSION $SCDIR/build-folder.sh "." "clean install -Pintegration"
7273
fi
7374

7475
if [ ! -d apps ]; then

build-folder.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fi
3939

4040
# Determine profile based on version type
4141
if [ "$VERSION" == "" ]; then
42+
echo "Determining version number"
4243
VERSION=$($SCDIR/mvn-get-version.sh)
4344
fi
4445
echo -e "Determining profile to use for version $VERSION"

0 commit comments

Comments
 (0)