diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-02-26 16:49:26 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-02-26 16:49:26 -0800 |
commit | 8eaa969d96dacde5119fe516aa35da4004091246 (patch) | |
tree | 24e3edc6b540884cbfa1557154e194f5e807840e /build_upload_nightly | |
parent | 3901ec23c0be871e544c03a61d2efc8789456e60 (diff) |
Fun untested changes for uploading nightly builds
Diffstat (limited to 'build_upload_nightly')
-rwxr-xr-x | build_upload_nightly | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build_upload_nightly b/build_upload_nightly new file mode 100755 index 0000000..3f78e0a --- /dev/null +++ b/build_upload_nightly @@ -0,0 +1,15 @@ +#!/bin/sh + +name=$1 +source $HOME/$name.params +lxc-start -n "$CONTAINER_NAME" +if [ $? -ne 0]; then + exit $? +fi +build_output=$(lxc-attach -n "$CONTAINER_NAME" -- /home/$BUILD_USER/blastem/build_nightly > /tmp/build_${name}_out.log) +if [ $? -ne 0]; then + exit $? +fi +source $HOME/remote.params +artifact=$(tail -n 1 /tmp/build_${name}_out.log) +echo $REMOTE_PASS | scp "$artifact" $REMOTE_USER@$REMOTE_HOST:/home/$REMOTE_USER/nightlies |