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