| #!/bin/bash -ex |
| |
| # exit on errors |
| set -eu -o pipefail |
| |
| # set up ONOS build environment |
| ONOS_ROOT=`pwd` |
| . tools/build/envDefaults |
| |
| PATH=$PATH:/home/jenkins/bin |
| |
| # set up JDK 11 if needed |
| if [ ${GERRIT_BRANCH} == "master" -o ${GERRIT_BRANCH} == "onos-2.2" ] |
| then |
| echo Installing OPEN JDK 11 |
| curl -L -o jdk.tar.gz -s https://cdn.azul.com/zulu/bin/zulu11.31.11-ca-jdk11.0.3-linux_x64.tar.gz |
| tar xf jdk.tar.gz |
| export JAVA_HOME="`pwd`/zulu11.31.11-ca-jdk11.0.3-linux_x64" |
| PATH="$JAVA_HOME/bin:$PATH" |
| java -version |
| else |
| echo Using default JDK |
| fi |
| |
| # import GPG key |
| gpg --import jenkins.key |
| |
| # 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 |