Add PolyGerrit test execution on Bazel build

Change-Id: Ib2cb861bc87b5c45d968c68ccaedd1e2e919ad3c
diff --git a/jenkins/gerrit-bazel-test.sh b/jenkins/gerrit-bazel-test.sh
index 1f97116..0387af7 100644
--- a/jenkins/gerrit-bazel-test.sh
+++ b/jenkins/gerrit-bazel-test.sh
@@ -16,6 +16,19 @@
   echo 'Test in Note DB mode'
   echo '----------------------------------------------'
   GERRIT_ENABLE_NOTEDB=TRUE bazel test $BAZEL_OPTS //...
+
+  echo 'Test PolyGerrit locally'
+  echo '----------------------------------------------'
+  sh ./polygerrit-ui/app/run_test.sh
+
+  if [ -z "$SAUCE_USERNAME" ] || [ -z "$SAUCE_ACCESS_KEY" ]
+  then
+    echo 'Not running on Sauce Labs because env vars are not set.'
+  else
+    echo 'Test PolyGerrit on Sauce Labs'
+    echo '----------------------------------------------'
+    WCT_ARGS='--plugin sauce' sh ./polygerrit-ui/app/run_test.sh
+  fi
 fi
 
 exit 0