Ray Milkey | 3ac0079 | 2016-12-01 14:28:15 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Builds the release bits and uploads them. |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
| 6 | VERSION=$1 |
| 7 | NEXT_VERSION=$2 |
| 8 | BRANCH=$3 |
| 9 | |
| 10 | set -e |
| 11 | set -x |
| 12 | |
| 13 | # fix version strings, build artifacts, upload artifacts |
| 14 | onos-release $VERSION | tee build.log |
| 15 | |
| 16 | # upload docs |
| 17 | onos-upload-docs ${WIKI_USER} |
| 18 | |
| 19 | # upload release bits |
| 20 | onos-upload-bits |
| 21 | |
| 22 | # spot check that uploaded artifacts are correct |
| 23 | check-uploaded-maven-artifacts $VERSION $ONOS_ROOT https://oss.sonatype.org/content/groups/staging |
| 24 | |
| 25 | # set the version strings to the next version |
| 26 | onos-snapshot ${NEXT_VERSION} |
| 27 | |
| 28 | # Push version string changes to git |
| 29 | git push origin ${BRANCH} |
| 30 | |
| 31 | # Push tag for this build to git |
| 32 | git push origin ${VERSION} |