Only run polygerrit lint tests on master
Change-Id: I46e9f1d51003eb9f31e5a94056f3d34ddcb0b34d
diff --git a/jenkins/gerrit-bazel-verifier-test.sh b/jenkins/gerrit-bazel-verifier-test.sh
index 8f79497..8fb5ddf 100755
--- a/jenkins/gerrit-bazel-verifier-test.sh
+++ b/jenkins/gerrit-bazel-verifier-test.sh
@@ -34,8 +34,11 @@
if [[ "$MODE" == *"polygerrit"* ]]
then
- echo 'Running lint tests...'
- bazel test //polygerrit-ui/app:lint_test --test_output errors
+ if [[ "$TARGET_BRANCH" == "master" ]]
+ then
+ echo 'Running lint tests...'
+ bazel test //polygerrit-ui/app:lint_test --test_output errors
+ fi
if [ -z "$DISPLAY" ]
then