blob: 1036e6595fc8e277bb3fde648809d33498e38d55 [file] [log] [blame]
Yuta HIGUCHI18948042018-05-08 14:07:51 -07001#!/bin/bash -ex
2
3# exit on errors
4set -eu -o pipefail
5
6# import GPG key
7gpg --import jenkins.key
8
9# set up release build credentials
10. onos-build-credentials
11
12# configure git settings
13git config user.email "jenkins@onlab.us"
14git config user.name "ONOS Jenkins User"
15
16# stage the maven settings
17mkdir -p ~/.m2
18mv settings.xml ~/.m2/settings.xml
19
20# stage and add the build SSH key
21chmod 600 id_rsa.pub
22ssh-add id_rsa.pub
23
24# get the sources
25git checkout $GERRIT_BRANCH
26
27# run the release process
28tools/onos-yang-tools-build-release ${YANGTOOLS_VERSION} ${YANGTOOLS_NEXT_VERSION} ${GERRIT_BRANCH}