Limit bazel tests parallelism to 1

Some tests (e.g. ElasticSearch) seem to fail intermittently when
executed in parallel with others. To prevent the build to become flaky
it is safer to temporarily disable the parallelism, at least with Bazel.

Change-Id: I6d5922175f7942e4d321054e10b038d6ef56b62d
diff --git a/jenkins/gerrit-bazel-test.sh b/jenkins/gerrit-bazel-test.sh
index 4de710c..54255f9 100644
--- a/jenkins/gerrit-bazel-test.sh
+++ b/jenkins/gerrit-bazel-test.sh
@@ -6,7 +6,8 @@
 
   export BAZEL_OPTS="--ignore_unsupported_sandboxing --test_output errors \
                      --test_summary detailed --flaky_test_attempts 3 \
-                     --test_verbose_timeout_warnings --build_tests_only" 
+                     --test_verbose_timeout_warnings --build_tests_only \
+                     --local_test_jobs 1"
 
   echo 'Test in default DB mode'
   echo '----------------------------------------------'
diff --git a/jenkins/gerrit-bazel-verifier-test.sh b/jenkins/gerrit-bazel-verifier-test.sh
index 775b16b..cb3677f 100644
--- a/jenkins/gerrit-bazel-verifier-test.sh
+++ b/jenkins/gerrit-bazel-verifier-test.sh
@@ -19,7 +19,8 @@
     bazel test $GERRIT_NOTEDB \
                --ignore_unsupported_sandboxing --test_output errors \
                --test_summary detailed --flaky_test_attempts 3 \
-               --test_verbose_timeout_warnings --build_tests_only //...
+               --test_verbose_timeout_warnings --build_tests_only \
+               --local_test_jobs 1 //...
   fi
 
   if [ "$MODE" == "polygerrit" ]