Install proper versions of bazel for builds on master and 1.15 branches

Change-Id: I58731c47162f4586ef1997c48cddfe2e5f1287de
diff --git a/jjb/onos/onos-release-build-verify.sh b/jjb/onos/onos-release-build-verify.sh
index 3b84774..c7f6c0e 100644
--- a/jjb/onos/onos-release-build-verify.sh
+++ b/jjb/onos/onos-release-build-verify.sh
@@ -7,7 +7,19 @@
 ONOS_ROOT=`pwd`
 . tools/build/envDefaults
 
-curl -L -o bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.15.2/bazel-0.15.2-installer-linux-x86_64.sh
+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
+
 chmod +x bazel.sh 
 ./bazel.sh --user
 PATH=$PATH:/home/jenkins/bin
@@ -15,5 +27,5 @@
 # import GPG key
 gpg --import jenkins.key
 
-# run the verification build
+# run the verification build - versions don't matter here, artifacts are never published
 onos-build-and-upload 1.12.0-testbuild 1.12-SNAPSHOT master --dry-run