blob: 55c5cd9fcdd19e7f8315fe64571305e2d8195674 [file] [log] [blame]
Ray Milkey2afc4a52017-11-17 11:01:38 -08001#!/bin/bash -ex
2
3# set up ONOS build environment
4ONOS_ROOT=`pwd`
5. tools/build/envDefaults
6
Ray Milkeyb867be82017-11-27 13:29:19 -08007# import GPG key
8gpg --import jenkins.key
Ray Milkeye8fd4f02017-11-17 14:54:18 -08009
Ray Milkey2afc4a52017-11-17 11:01:38 -080010env
Ray Milkeyc33b1632017-11-17 16:41:45 -080011
Ray Milkey2afc4a52017-11-17 11:01:38 -080012# set up release build credentials
13. onos-build-credentials
14
15env
16
Ray Milkey094fd002017-11-22 10:21:59 -080017git config user.email "jenkins@onosproject.org"
18git config user.name "ONOS Jenkins User"
19
Ray Milkey43e7f932017-11-27 08:48:42 -080020# stage the maven settings
21mkdir -p ~/.m2
22mv settings.xml ~/.m2/settings.xml
23
Ray Milkey2afc4a52017-11-17 11:01:38 -080024# run the build
25onos-build-and-upload ${ONOS_VERSION} ${ONOS_NEXT_VERSION} ${GERRIT_BRANCH}