Skip building maven and eclipse for polygerrit.

This should save about 4 minutes of time for polygerrit builds.

Change-Id: I0dcbcead68c0a2f36e24340be150eb3188efc922
diff --git a/jenkins/gerrit-bazel-build.sh b/jenkins/gerrit-bazel-build.sh
index 41ccc21..6fb040f 100644
--- a/jenkins/gerrit-bazel-build.sh
+++ b/jenkins/gerrit-bazel-build.sh
@@ -27,6 +27,9 @@
     # TODO(davido): Figure out why javadoc part of api-rule doesn't work on RBE.
     # See: https://github.com/bazelbuild/bazel/issues/12765 for more background.
   bazelisk build --config=remote --remote_instance_name=projects/api-project-164060093628/instances/default_instance plugins:core release api-skip-javadoc
+elif [[ "$MODE" == *"polygerrit"* ]]
+then
+  echo "Skipping building eclipse and maven"
 else
   bazelisk build $BAZEL_OPTS plugins:core release api
   tools/maven/api.sh install