blob: 1f8d1a8a20bb516fe7e08816bcd9559cc402b2a9 [file] [log] [blame]
#!/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
sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
which java
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