Skip to content

Commit 813e233

Browse files
committed
DSP-13401 Add a way to use sbt binary from configurable location
Jenkins containers do not have sbt installed by default. In jenkins jobs SBT_BIN is used to point to custom sbt installation.
1 parent 907cbcf commit 813e233

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/server_package.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ else
3232
exit 1
3333
fi
3434

35+
set +u
36+
if [ -z "${SBT_BIN}" ]; then
37+
export SBT_BIN="sbt"
38+
fi
39+
set -u
40+
3541
echo Packaging job-server for environment $ENV...
3642

3743
cd $(dirname $0)/..
38-
sbt ++$SCALA_VERSION job-server-extras/assembly
44+
"$SBT_BIN" ++$SCALA_VERSION job-server-extras/assembly
3945
if [ "$?" != "0" ]; then
4046
echo "Assembly failed"
4147
exit 1

0 commit comments

Comments
 (0)