Remove obsolete Bazel spawn strategies
After the latest Bazel upgrade, the --spawn_strategy=standalone
doesn't show the output of the subprocess created, making the
troubleshoot of the failures impossible.
The sandboxing was introduced many years ago with
Change-Id: I15bc00861 because of the initial limitations of sandboxing
with Docker. With the recent versions of Bazel this legacy flags
shouldn't be needed anymore.
Change-Id: I0a68895b57d3d6f066de3ac9420a00f2e02a09c8
diff --git a/jenkins/gerrit-bazel-build-plugin.sh b/jenkins/gerrit-bazel-build-plugin.sh
index 6d168af..e2c778e 100644
--- a/jenkins/gerrit-bazel-build-plugin.sh
+++ b/jenkins/gerrit-bazel-build-plugin.sh
@@ -27,7 +27,7 @@
java -fullversion
bazelisk version
-bazelisk build $BAZEL_OPTS --spawn_strategy=standalone --genrule_strategy=standalone $TARGETS
+bazelisk build $BAZEL_OPTS $TARGETS
bazelisk test $BAZEL_OPTS --test_env DOCKER_HOST=$DOCKER_HOST //tools/bzl:always_pass_test plugins/{name}/...
for JAR in $(find bazel-bin/plugins/{name} -maxdepth 1 -name {name}*.jar)