Mercurial > repos > blastem
changeset 1250:738c8aa2c741
Add some logging to build_nightly
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 27 Feb 2017 00:21:38 -0800 |
parents | 83b3b7ba910e |
children | f249fd91b0f5 |
files | build_upload_nightly |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/build_upload_nightly Mon Feb 27 00:17:53 2017 -0800 +++ b/build_upload_nightly Mon Feb 27 00:21:38 2017 -0800 @@ -11,10 +11,14 @@ 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"