blob: 367fc1d3637d391f2c5078e98ae017826988cee1 [file] [log] [blame]
Thomas Vachuska683b31b2015-01-26 11:54:31 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Uploads ONOS distributable bits.
4# -----------------------------------------------------------------------------
Brian O'Connorf5d93632015-09-04 20:18:31 -07005
6set -e
7
Thomas Vachuska683b31b2015-01-26 11:54:31 -08008[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
9. $ONOS_ROOT/tools/build/envDefaults
10
Brian O'Connor6b30e1b2015-03-11 16:44:16 -070011#FIXME need to export s3Creds
Thomas Vachuska683b31b2015-01-26 11:54:31 -080012
Thomas Vachuskabe1a1962016-10-25 16:59:29 -070013# Stage the onos tar in /tmp
14rm -f $ONOS_TAR
15cp $(onos-buck build onos --show-output | tail -1 | cut -d\ -f2) $ONOS_TAR
16
17# Repackage the onos tar
18pushd /tmp/
19tar xf onos-$ONOS_VERSION.tar.gz
20rm -f onos-$ONOS_VERSION.zip
21zip -r onos-$ONOS_VERSION.zip onos-$ONOS_VERSION/
22popd
23
24# Stage the test bits tar in /tmp
25rm -f $ONOS_TEST_TAR
26cp $(onos-buck build //:onos-test --show-output | tail -1 | cut -d\ -f2) $ONOS_TEST_TAR
27
Ray Milkeye26cf8e2016-11-22 17:25:42 -080028onosUploadBits.py ${ONOS_VERSION%-*}