Do not run NoteDb tests on stable-2.14

The stable-2.14 branch does not include a
production-ready implementation on NoteDb.
Does not make sense to mark the build as red
if NoteDb tests are failing or not supported.

Change-Id: I738a38e8d8f47487694212b567ae08924800965c
diff --git a/jenkins/gerrit-bazel-test.sh b/jenkins/gerrit-bazel-test.sh
index 6766f78..5f45c58 100755
--- a/jenkins/gerrit-bazel-test.sh
+++ b/jenkins/gerrit-bazel-test.sh
@@ -14,13 +14,16 @@
 echo '----------------------------------------------'
 bazel test $BAZEL_OPTS //...
 
-echo 'Test in NoteDb mode (Disable ReviewDb)'
-echo '----------------------------------------------'
-bazel test --test_env=GERRIT_NOTEDB=DISABLE_CHANGE_REVIEW_DB $BAZEL_OPTS //...
+if [ "{branch}" == "master" ]
+then
+  echo 'Test in NoteDb mode (Disable ReviewDb)'
+  echo '----------------------------------------------'
+  bazel test --test_env=GERRIT_NOTEDB=DISABLE_CHANGE_REVIEW_DB $BAZEL_OPTS //...
 
-echo 'Test in NoteDb mode (Fused)'
-echo '----------------------------------------------'
-bazel test --test_env=GERRIT_NOTEDB=FUSED $BAZEL_OPTS //...
+  echo 'Test in NoteDb mode (Fused)'
+  echo '----------------------------------------------'
+  bazel test --test_env=GERRIT_NOTEDB=FUSED $BAZEL_OPTS //...
+fi
 
 echo 'Test PolyGerrit locally'
 echo '----------------------------------------------'