onos/tools/build/onos-upload-bits
Thomas Vachuska be1a1964bb Migrated release script to use Buck exclusively.
Change-Id: I04371594b68071488788c4ecbdb896a6306a2a14
2016-10-27 17:03:35 +00:00

29 lines
810 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Uploads ONOS distributable bits.
# -----------------------------------------------------------------------------
set -e
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
#FIXME need to export s3Creds
# Stage the onos tar in /tmp
rm -f $ONOS_TAR
cp $(onos-buck build onos --show-output | tail -1 | cut -d\ -f2) $ONOS_TAR
# Repackage the onos tar
pushd /tmp/
tar xf onos-$ONOS_VERSION.tar.gz
rm -f onos-$ONOS_VERSION.zip
zip -r onos-$ONOS_VERSION.zip onos-$ONOS_VERSION/
popd
# Stage the test bits tar in /tmp
rm -f $ONOS_TEST_TAR
cp $(onos-buck build //:onos-test --show-output | tail -1 | cut -d\ -f2) $ONOS_TEST_TAR
onosUploadBits.py $ONOS_VERSION