blob: 4f4dc58fa74f1eacaeaf9fc211dcdfa5f0c31a98 [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 Milkey60c5d8e2017-11-27 10:28:07 -08007# extract GPG keys
Ray Milkeyc33b1632017-11-17 16:41:45 -08008base64 -d secring.gpg.b64 >secring.gpg
Ray Milkey60c5d8e2017-11-27 10:28:07 -08009base64 -d pubring.gpg.b64 >pubring.gpg
Ray Milkeye8fd4f02017-11-17 14:54:18 -080010
Ray Milkey2afc4a52017-11-17 11:01:38 -080011env
Ray Milkeyc33b1632017-11-17 16:41:45 -080012
Ray Milkey2afc4a52017-11-17 11:01:38 -080013# set up release build credentials
14. onos-build-credentials
15
16env
17
Ray Milkey094fd002017-11-22 10:21:59 -080018git config user.email "jenkins@onosproject.org"
19git config user.name "ONOS Jenkins User"
20
Ray Milkey43e7f932017-11-27 08:48:42 -080021# stage the maven settings
22mkdir -p ~/.m2
23mv settings.xml ~/.m2/settings.xml
24
Ray Milkey60c5d8e2017-11-27 10:28:07 -080025# stage the gpg keys
Ray Milkey43e7f932017-11-27 08:48:42 -080026mkdir -p ~/.gnupg
Ray Milkey60c5d8e2017-11-27 10:28:07 -080027cp secring.gpg ~/.gnupg
28cp pubring.gpg ~/.gnupg
Ray Milkey43e7f932017-11-27 08:48:42 -080029
Ray Milkey2afc4a52017-11-17 11:01:38 -080030# run the build
31onos-build-and-upload ${ONOS_VERSION} ${ONOS_NEXT_VERSION} ${GERRIT_BRANCH}