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 | b867be8 | 2017-11-27 13:29:19 -0800 | [diff] [blame] | 7 | # import GPG key |
| 8 | gpg --import jenkins.key |
Ray Milkey | e8fd4f0 | 2017-11-17 14:54:18 -0800 | [diff] [blame] | 9 | |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 10 | env |
Ray Milkey | c33b163 | 2017-11-17 16:41:45 -0800 | [diff] [blame] | 11 | |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 12 | # set up release build credentials |
| 13 | . onos-build-credentials |
| 14 | |
| 15 | env |
| 16 | |
Ray Milkey | 094fd00 | 2017-11-22 10:21:59 -0800 | [diff] [blame] | 17 | git config user.email "jenkins@onosproject.org" |
| 18 | git config user.name "ONOS Jenkins User" |
| 19 | |
Ray Milkey | 43e7f93 | 2017-11-27 08:48:42 -0800 | [diff] [blame] | 20 | # stage the maven settings |
| 21 | mkdir -p ~/.m2 |
| 22 | mv settings.xml ~/.m2/settings.xml |
| 23 | |
Ray Milkey | 7d774fb | 2017-12-05 14:57:30 -0800 | [diff] [blame^] | 24 | # stage the SSH key |
| 25 | cp id_rsa.pub ~/.ssh |
| 26 | |
| 27 | # set user to use for uploading javadocs |
| 28 | WIKI_USER="jenkins" |
| 29 | export WIKI_USER |
| 30 | |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 31 | # run the build |
| 32 | onos-build-and-upload ${ONOS_VERSION} ${ONOS_NEXT_VERSION} ${GERRIT_BRANCH} |