Skip to content

Commit 5ba446f

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 db5d412 commit 5ba446f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/server_package.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ else
3535
echo "Please specify SCALA_VERSION in ${configFile}"
3636
exit 1
3737
fi
38+
39+
if [ -z "${SBT_BIN}" ]; then
40+
export SBT_BIN="sbt"
41+
fi
3842
set -u
3943

4044
echo "Packaging job-server for environment ${ENV}..."
4145

4246
pushd "${bin}/.." > /dev/null
43-
if ! sbt ++"${SCALA_VERSION}" job-server-extras/assembly; then
47+
if ! "$SBT_BIN" ++"${SCALA_VERSION}" job-server-extras/assembly; then
4448
echo "Assembly failed"
4549
exit 1
4650
fi

0 commit comments

Comments
 (0)