From ef885ab8a0cc278cd8a35800bfcc8ac0ece491af Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 11 Oct 2016 13:48:36 +0200 Subject: add some comments --- bin/jenkins_master_wrapper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh index 72037c84..9301275f 100755 --- a/bin/jenkins_master_wrapper.sh +++ b/bin/jenkins_master_wrapper.sh @@ -60,7 +60,9 @@ if [ $RESULT -ne 0 ] ; then exec /srv/jenkins/bin/abort.sh fi set -e -# run things on the target node +# +# actually run things on the target node +# RETVAL=0 ssh -o "BatchMode = yes" -p $PORT $NODE_NAME "$PARAMS" || { # mention failures, but continue since we might want the artifacts anyway @@ -79,4 +81,7 @@ if [ "$RETRIEVE_ARTIFACTS" = "yes" ] ; then ssh -o "BatchMode = yes" -p $PORT $NODE_NAME "rm -r $NODE_RESULTS" fi +# +# exit with the actual exit code from the target node +# exit $RETVAL -- cgit v1.2.3-70-g09d2