Ray Milkey | 1b3084f | 2019-07-01 15:29:11 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # exit on errors |
| 4 | set -eu -o pipefail |
| 5 | |
| 6 | if [ ${GERRIT_BRANCH} == "master" ] |
| 7 | then |
| 8 | BAZEL_VERSION="0.19.2" |
| 9 | else |
| 10 | if [ ${GERRIT_BRANCH} == "master" ]; then |
| 11 | BAZEL_VERSION="0.27.0" |
| 12 | else |
| 13 | BAZEL_VERSION="0.24.1" |
| 14 | fi |
| 15 | fi |
| 16 | |
| 17 | if [ ${GERRIT_BRANCH} == "master" -o ${GERRIT_BRANCH} == "onos-2.2" ] |
| 18 | then |
| 19 | echo Installing OPEN JDK 11 |
Ray Milkey | b03f205 | 2019-07-01 16:05:33 -0700 | [diff] [blame^] | 20 | sudo update-java-alternatives -s java-1.11.0-openjdk-amd64 |
Ray Milkey | 1b3084f | 2019-07-01 15:29:11 -0700 | [diff] [blame] | 21 | which java |
| 22 | else |
| 23 | echo Using default JDK |
| 24 | fi |
| 25 | |
| 26 | |