diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-02-27 00:21:38 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-02-27 00:21:38 -0800 |
commit | bd2fcaed78f4d4c3a887c83a2a44e92b2f7e1744 (patch) | |
tree | ee215f26033a84a3d11b4ef2eac8a6b703c33bca | |
parent | 27d68784d5d121439b47693f1fe341941368dcf0 (diff) |
Add some logging to build_nightly
-rwxr-xr-x | build_upload_nightly | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build_upload_nightly b/build_upload_nightly index 315983a..6a82a51 100755 --- a/build_upload_nightly +++ b/build_upload_nightly @@ -11,10 +11,14 @@ sleep 10 echo Starting build by $BUILD_USER in $CONTAINER_NAME lxc-attach -n "$CONTAINER_NAME" -- /home/$BUILD_USER/blastem/build_nightly $BUILD_USER > /tmp/build_${name}_out.log if [ $? -ne 0 ]; then + echo Build falied with return code $? stopping $CONTAINER_NAME lxc-stop -n "$CONTAINER_NAME" exit $? fi +echo "Build succeeded, stopping $CONTAINER_NAME" lxc-stop -n "$CONTAINER_NAME" . $HOME/remote.params artifact=$(tail -n 1 /tmp/build_${name}_out.log) +echo "Uploaing $artifact to $REMOTE_HOST" scp -i "$REMOTE_IDENT" "$HOME/.local/share/lxc/$CONTAINER_NAME/rootfs/home/$BUILD_USER/blastem/$artifact" $REMOTE_USER@$REMOTE_HOST:/home/$REMOTE_USER/nightlies +echo "Done" |