[ARVADOS-DEV] updated: 1918e7df1be616ee87004a41c3806fb5f1470c41
Git user
git at public.arvados.org
Fri Mar 20 21:22:09 UTC 2020
Summary of changes:
jenkins/run-deploy.sh | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
via 1918e7df1be616ee87004a41c3806fb5f1470c41 (commit)
from 1106bda308c95f335da1b095fe04fbb56b3fa30c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 1918e7df1be616ee87004a41c3806fb5f1470c41
Author: Ward Vandewege <ward at jhvc.com>
Date: Fri Mar 20 17:12:39 2020 -0400
A few improvements to run-deploy.sh:
* deal with those annoying `Ignoring curb-0.9.10 because its extensions
are not built. Try: gem pristine curb --version 0.9.10` warnings so we
don't display them, for real this time.
* prefix output of remote commands with the name of the host. That makes
determining which host is having issues easier when run with
--concurrency > 1
refs #16220
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at jhvc.com>
diff --git a/jenkins/run-deploy.sh b/jenkins/run-deploy.sh
index d2c742e..0d87ca5 100755
--- a/jenkins/run-deploy.sh
+++ b/jenkins/run-deploy.sh
@@ -106,7 +106,10 @@ EXITCODE=0
COLUMNS=80
PUPPET_AGENT='
-__rvm_unload
+if [[ -e "/usr/local/rvm/scripts/rvm" ]]; then
+ source /usr/local/rvm/scripts/rvm
+ __rvm_unload
+fi
now() { date +%s; }
let endtime="$(now) + 600"
while [ "$endtime" -gt "$(now)" ]; do
@@ -157,9 +160,9 @@ function run_apt() {
sleep $[ $RANDOM / 6000 ].$[ $RANDOM / 1000 ]
TMP_FILE=`mktemp`
if [[ "$DEBUG" != "0" ]]; then
- ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$APT_AGENT'" | tee $TMP_FILE
+ ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$APT_AGENT'" 2>&1 | sed 's/^/['"${node}"'] /' | tee $TMP_FILE
else
- ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$APT_AGENT'" > $TMP_FILE 2>&1
+ ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$APT_AGENT'" 2>&1 | sed 's/^/['"${node}"'] /' > $TMP_FILE 2>&1
fi
ECODE=${PIPESTATUS[0]}
@@ -193,9 +196,9 @@ function run_puppet() {
sleep $[ $RANDOM / 6000 ].$[ $RANDOM / 1000 ]
TMP_FILE=`mktemp`
if [[ "$DEBUG" != "0" ]]; then
- ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$PUPPET_AGENT'" | tee $TMP_FILE
+ ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$PUPPET_AGENT'" 2>&1 | sed 's/^/['"${node}"'] /' | tee $TMP_FILE
else
- ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$PUPPET_AGENT'" > $TMP_FILE 2>&1
+ ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 5" root@$node -C bash -c "'$PUPPET_AGENT'" 2>&1 | sed 's/^/['"${node}"'] /' > $TMP_FILE 2>&1
fi
ECODE=${PIPESTATUS[0]}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list