Use proper bazel versions for STC jobs
Change-Id: I93118df255e145eef6e5d5140e57efd41b2e3297
diff --git a/jjb/onos/onos-run-stc-hag.sh b/jjb/onos/onos-run-stc-hag.sh
index ae6bb02..92a8856 100644
--- a/jjb/onos/onos-run-stc-hag.sh
+++ b/jjb/onos/onos-run-stc-hag.sh
@@ -11,6 +11,19 @@
export JAVA_HOME=
. tools/dev/bash_profile
+if [ ${GERRIT_BRANCH} == "onos-1.14" ]
+then
+ curl -L -o bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.15.2/bazel-0.15.2-installer-linux-x86_64.sh
+fi
+if [ ${GERRIT_BRANCH} == "onos-1.15" ]
+then
+ curl -L -o bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.17.1/bazel-0.17.1-installer-linux-x86_64.sh
+fi
+if [ ${GERRIT_BRANCH} == "master" ]
+then
+ curl -L -o bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.19.0/bazel-0.19.0-installer-linux-x86_64.sh
+fi
+
# always free the cell when exiting
function cleanup {