aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/ci/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/build.sh')
-rwxr-xr-xscripts/ci/build.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index 08c7389470..6599e72b80 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -142,7 +142,11 @@ function bazel_build() {
# Copy the results to the output directory
mkdir -p $1/packages
cp bazel-bin/src/bazel $1/bazel
- cp bazel-bin/scripts/packages/install.sh $1/bazel-${release_label}-installer.sh
+ # The version with a bundled JDK may not exist on all platforms.
+ if [ "${JAVA_VERSION}" = "1.8" -a -e "bazel-bin/scripts/packages/with-jdk/install.sh" ]; then
+ cp bazel-bin/scripts/packages/with-jdk/install.sh $1/bazel-${release_label}-installer.sh
+ fi
+ cp bazel-bin/scripts/packages/without-jdk/install.sh $1/bazel-${release_label}-without-jdk-installer.sh
if [ "$PLATFORM" = "linux" ]; then
cp bazel-bin/scripts/packages/debian/bazel-debian.deb $1/bazel_${release_label}.deb
cp -f bazel-genfiles/scripts/packages/debian/bazel.dsc $1/bazel.dsc