[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: include duration in rbuild logs
Holger Levsen
holger at moszumanska.debian.org
Fri Apr 3 14:07:55 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 0ee0169ef19a9e0f26db63837acc2d5a6e1e7c7e
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Apr 3 16:07:51 2015 +0200
reproducible: include duration in rbuild logs
---
bin/reproducible_build.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index e76eb2c..50f6469 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -154,6 +154,10 @@ call_debbindiff() {
# kgb-client --conf /srv/jenkins/kgb/debian-reproducible.conf --relay-msg "$MESSAGE" || true # don't fail the whole job
fi
fi
+ HOUR=$(echo "$DURATION/3600"|bc)
+ MIN=$(echo "($DURATION-$HOUR*3600)/60"|bc)
+ SEC=$(echo "$DURATION-$HOUR*3600-$MIN*60"|bc)
+ echo "$(date) - total duration: ${HOUR}h ${MIN}m ${SEC}s." | tee -a ${RBUILDLOG}
}
TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list