Upgrade master branch verification builds to bazel 0.17.1
Change-Id: Ib73adcc5c5e45d29c3ca49beb68aceaf831ad45d
diff --git a/jjb/onos/onos-bazel-verify.sh b/jjb/onos/onos-bazel-verify.sh
index 019b77c..5d0b26a 100644
--- a/jjb/onos/onos-bazel-verify.sh
+++ b/jjb/onos/onos-bazel-verify.sh
@@ -6,7 +6,12 @@
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} == "master" ]
+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
+else
+ 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
chmod +x bazel.sh
./bazel.sh --user
PATH=$PATH:/home/jenkins/bin