summaryrefslogtreecommitdiff
path: root/build_upload_nightly
diff options
context:
space:
mode:
Diffstat (limited to 'build_upload_nightly')
-rwxr-xr-xbuild_upload_nightly7
1 files changed, 4 insertions, 3 deletions
diff --git a/build_upload_nightly b/build_upload_nightly
index 6a82a51..7d392c1 100755
--- a/build_upload_nightly
+++ b/build_upload_nightly
@@ -9,9 +9,10 @@ if [ $? -ne 0 ]; then
fi
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-attach -n "$CONTAINER_NAME" -- /home/$BUILD_USER/blastem/build_nightly $BUILD_USER 2>&1 > /tmp/build_${name}_out.log
+result=$?
+if [ $result -ne 0 ]; then
+ echo Build falied with return code $result stopping $CONTAINER_NAME
lxc-stop -n "$CONTAINER_NAME"
exit $?
fi