| # ----------------------------------------------------------------------------- |
| # Uploads ONOS distributable bits. |
| # ----------------------------------------------------------------------------- |
| [ ! -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 |
| cp $(onos-buck build onos --show-output | tail -1 | cut -d\ -f2) $ONOS_TAR |
| tar xf onos-$ONOS_VERSION.tar.gz |
| rm -f onos-$ONOS_VERSION.zip |
| zip -r onos-$ONOS_VERSION.zip onos-$ONOS_VERSION/ |
| # Stage the test bits tar in /tmp |
| cp $(onos-buck build //:onos-test --show-output | tail -1 | cut -d\ -f2) $ONOS_TEST_TAR |
| onosUploadBits.py ${ONOS_VERSION%-*} |