Bazel: Avoid using low level rules in the CI script

Change-Id: Ic955fd379adfac027ebad0bf0b8578963b047ae2
diff --git a/jenkins/gerrit-bazel-build.sh b/jenkins/gerrit-bazel-build.sh
index 7c550b7..443cdf8 100644
--- a/jenkins/gerrit-bazel-build.sh
+++ b/jenkins/gerrit-bazel-build.sh
@@ -5,9 +5,6 @@
 
 export BAZEL_OPTS="--spawn_strategy=standalone --genrule_strategy=standalone"
 
-bazel build $BAZEL_OPTS \
-      gerrit-plugin-api:plugin-api_deploy.jar \
-      gerrit-extension-api:extension-api_deploy.jar
-
 bazel build $BAZEL_OPTS plugins:core
 bazel build $BAZEL_OPTS release
+bazel build $BAZEL_OPTS api