Daniele Moro | ce4cc70 | 2021-02-26 18:57:30 +0100 | [diff] [blame] | 1 | #!/bin/bash -e |
2 | |||||
3 | # exit on errors | ||||
4 | set -eu -o pipefail | ||||
5 | |||||
6 | # set up ONOS build environment | ||||
7 | # shellcheck disable=SC2034 | ||||
8 | ONOS_ROOT=`pwd` | ||||
9 | . tools/build/envDefaults | ||||
10 | |||||
11 | PATH=$PATH:/home/jenkins/bin | ||||
12 | |||||
13 | # import GPG key | ||||
14 | gpg --import jenkins.key | ||||
15 | |||||
16 | # stage the maven settings | ||||
17 | mkdir -p ~/.m2 | ||||
18 | mv settings.xml ~/.m2/settings.xml | ||||
19 | |||||
20 | # run the build and upload snapshot artifacts | ||||
21 | onos-build-and-upload-snapshot |