From 35c2b25fb6b68509a25cbfb02babee177dfb1070 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 12 Nov 2019 18:28:09 +0100 Subject: [PATCH] further shrink job output boilerplates Signed-off-by: Holger Levsen --- bin/common-functions.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/common-functions.sh b/bin/common-functions.sh index 1b876f20..5aaec8d1 100755 --- a/bin/common-functions.sh +++ b/bin/common-functions.sh @@ -6,7 +6,7 @@ # released under the GPLv2 common_cleanup() { - echo "$(date -u) - $0 stopped running as $TTT, which will now be removed." + echo "$(date -u) - $(basename $0) stopped running as $TTT, which will now be removed." rm -f $TTT } @@ -90,16 +90,13 @@ if [ "${0:0:5}" != "/tmp/" ] ; then cp $0 $TTT chmod +x $TTT echo "====================================================================================" - echo echo "$(date -u) - running $0 (for job $WHOAREWE) on $(hostname), called using \"$@\" as arguments." echo "$(date -u) - actually running \"$(basename $0)\" (md5sum $(md5sum $0|cut -d ' ' -f1)) as \"$TTT\"" echo echo "To learn to understand this, git clone https://salsa.debian.org/qa/jenkins.debian.net.git and then have a look at the files README, INSTALL, CONTRIBUTING and maybe TODO." echo echo "Please send feedback about jenkins to qa-jenkins-dev@lists.alioth.debian.org, or as a bug against the 'jenkins.debian.org' pseudo-package, feedback about specific job results should go to their respective lists and/or the BTS." - echo echo "====================================================================================" - echo # this is the "hack": call ourself as a copy in /tmp again $TTT "$@" exit $? -- GitLab