#!/bin/bash # Note this script doesn't seem to be used by the image builds. # The system-config/roles/bazelisk-build role seems to be used instead. set +x for attempt in seq 1 3 ; do bazel build plugins/javamelody:javamelody-deps_deploy.jar release \ --define=ABSOLUTE_JAVABASE=/usr/lib/jvm/java-8-openjdk-amd64 \ --javabase=@bazel_tools//tools/jdk:absolute_javabase \ --host_javabase=@bazel_tools//tools/jdk:absolute_javabase \ --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_vanilla \ --java_toolchain=@bazel_tools//tools/jdk:toolchain_vanilla \ $@ result=$? done exit $result