use common script for installation of bazel

Change-Id: If62d77d07788071ac9e605d964ca945a21543dde
diff --git a/jjb/onos/onos-bazel-release-build.sh b/jjb/onos/onos-bazel-release-build.sh
index 3d7f772..f1f7c74 100644
--- a/jjb/onos/onos-bazel-release-build.sh
+++ b/jjb/onos/onos-bazel-release-build.sh
@@ -6,9 +6,6 @@
 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
-chmod +x bazel.sh 
-./bazel.sh --user
 PATH=$PATH:/home/jenkins/bin
 
 # import GPG key
diff --git a/jjb/onos/onos-bazel-verify.sh b/jjb/onos/onos-bazel-verify.sh
index ba665b1..ddef796 100644
--- a/jjb/onos/onos-bazel-verify.sh
+++ b/jjb/onos/onos-bazel-verify.sh
@@ -6,20 +6,6 @@
 ONOS_ROOT=`pwd`
 . tools/build/envDefaults
 
-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
 
 bazel build onos
diff --git a/jjb/onos/onos-run-bazel-stc-hag.sh b/jjb/onos/onos-run-bazel-stc-hag.sh
index 067cd78..6b07d13 100644
--- a/jjb/onos/onos-run-bazel-stc-hag.sh
+++ b/jjb/onos/onos-run-bazel-stc-hag.sh
@@ -11,10 +11,6 @@
 export JAVA_HOME=
 . tools/dev/bash_profile
 
-# Install bazel
-curl -L -o bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.15.2/bazel-0.15.2-installer-linux-x86_64.sh
-chmod +x bazel.sh 
-./bazel.sh --user
 PATH=$PATH:/home/jenkins/bin
 
 # always free the cell when exiting
diff --git a/jjb/onos/onos-run-bazel-stc.sh b/jjb/onos/onos-run-bazel-stc.sh
index 55b8587..4eb45bf 100644
--- a/jjb/onos/onos-run-bazel-stc.sh
+++ b/jjb/onos/onos-run-bazel-stc.sh
@@ -11,10 +11,6 @@
 export JAVA_HOME=
 . tools/dev/bash_profile
 
-# Install bazel
-curl -L -o bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.15.2/bazel-0.15.2-installer-linux-x86_64.sh
-chmod +x bazel.sh 
-./bazel.sh --user
 PATH=$PATH:/home/jenkins/bin
 
 # always free the cell when exiting