Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 1 | #!/bin/bash -ex |
2 | |||||
3 | # set up ONOS build environment | ||||
4 | ONOS_ROOT=`pwd` | ||||
5 | . tools/build/envDefaults | ||||
6 | |||||
Ray Milkey | 60c5d8e | 2017-11-27 10:28:07 -0800 | [diff] [blame^] | 7 | # extract GPG keys |
Ray Milkey | c33b163 | 2017-11-17 16:41:45 -0800 | [diff] [blame] | 8 | base64 -d secring.gpg.b64 >secring.gpg |
Ray Milkey | 60c5d8e | 2017-11-27 10:28:07 -0800 | [diff] [blame^] | 9 | base64 -d pubring.gpg.b64 >pubring.gpg |
Ray Milkey | e8fd4f0 | 2017-11-17 14:54:18 -0800 | [diff] [blame] | 10 | |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 11 | env |
Ray Milkey | c33b163 | 2017-11-17 16:41:45 -0800 | [diff] [blame] | 12 | |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 13 | # set up release build credentials |
14 | . onos-build-credentials | ||||
15 | |||||
16 | env | ||||
17 | |||||
Ray Milkey | 094fd00 | 2017-11-22 10:21:59 -0800 | [diff] [blame] | 18 | git config user.email "jenkins@onosproject.org" |
19 | git config user.name "ONOS Jenkins User" | ||||
20 | |||||
Ray Milkey | 43e7f93 | 2017-11-27 08:48:42 -0800 | [diff] [blame] | 21 | # stage the maven settings |
22 | mkdir -p ~/.m2 | ||||
23 | mv settings.xml ~/.m2/settings.xml | ||||
24 | |||||
Ray Milkey | 60c5d8e | 2017-11-27 10:28:07 -0800 | [diff] [blame^] | 25 | # stage the gpg keys |
Ray Milkey | 43e7f93 | 2017-11-27 08:48:42 -0800 | [diff] [blame] | 26 | mkdir -p ~/.gnupg |
Ray Milkey | 60c5d8e | 2017-11-27 10:28:07 -0800 | [diff] [blame^] | 27 | cp secring.gpg ~/.gnupg |
28 | cp pubring.gpg ~/.gnupg | ||||
Ray Milkey | 43e7f93 | 2017-11-27 08:48:42 -0800 | [diff] [blame] | 29 | |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 30 | # run the build |
31 | onos-build-and-upload ${ONOS_VERSION} ${ONOS_NEXT_VERSION} ${GERRIT_BRANCH} |