mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
try harder to let all build processes die when ssh dies
This commit is contained in:
@@ -30,6 +30,8 @@ set +x
|
|||||||
|
|
||||||
ssh $SSHTARGET bash -c "cat >$BUILDDIR/exec_docker_run" <<_HERE
|
ssh $SSHTARGET bash -c "cat >$BUILDDIR/exec_docker_run" <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
|
# make sure all processes exit when ssh dies
|
||||||
|
shopt -s huponexit
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
export DCC_PY_LIVECONFIG=$DCC_PY_LIVECONFIG
|
export DCC_PY_LIVECONFIG=$DCC_PY_LIVECONFIG
|
||||||
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
||||||
|
|||||||
@@ -22,8 +22,12 @@ set +x
|
|||||||
|
|
||||||
echo "--- Running $CIRCLE_JOB remotely"
|
echo "--- Running $CIRCLE_JOB remotely"
|
||||||
|
|
||||||
ssh $SSHTARGET <<_HERE
|
ssh -t -t $SSHTARGET <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
|
|
||||||
|
# make sure all processes exit when ssh dies
|
||||||
|
shopt -s huponexit
|
||||||
|
|
||||||
export RUSTC_WRAPPER=\`which sccache\`
|
export RUSTC_WRAPPER=\`which sccache\`
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
# let's share the target dir with our last run on this branch/job-type
|
# let's share the target dir with our last run on this branch/job-type
|
||||||
|
|||||||
@@ -18,8 +18,10 @@ rsync --delete --files-from=.rsynclist -az ./ "$SSHTARGET:$BUILDDIR"
|
|||||||
|
|
||||||
echo "--- Running $CIRCLE_JOB remotely"
|
echo "--- Running $CIRCLE_JOB remotely"
|
||||||
|
|
||||||
ssh $SSHTARGET <<_HERE
|
ssh -t -t $SSHTARGET <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
|
# make sure all processes exit when ssh dies
|
||||||
|
shopt -s huponexit
|
||||||
export RUSTC_WRAPPER=\`which sccache\`
|
export RUSTC_WRAPPER=\`which sccache\`
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
# let's share the target dir with our last run on this branch/job-type
|
# let's share the target dir with our last run on this branch/job-type
|
||||||
|
|||||||
Reference in New Issue
Block a user