blob: 1036e6595fc8e277bb3fde648809d33498e38d55 [file] [log] [blame]
#!/bin/bash -ex
# exit on errors
set -eu -o pipefail
# import GPG key
gpg --import jenkins.key
# set up release build credentials
. onos-build-credentials
# configure git settings
git config user.email "jenkins@onlab.us"
git config user.name "ONOS Jenkins User"
# stage the maven settings
mkdir -p ~/.m2
mv settings.xml ~/.m2/settings.xml
# stage and add the build SSH key
chmod 600 id_rsa.pub
ssh-add id_rsa.pub
# get the sources
git checkout $GERRIT_BRANCH
# run the release process
tools/onos-yang-tools-build-release ${YANGTOOLS_VERSION} ${YANGTOOLS_NEXT_VERSION} ${GERRIT_BRANCH}