summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-04-03 16:07:51 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-03 16:07:51 +0200
commit0ee0169ef19a9e0f26db63837acc2d5a6e1e7c7e (patch)
treef177447f51ec1ee187e9147f93451c8a0de8ecf9 /bin
parentf59a14a9a072a09181d8afeddff7f81e77e40bc4 (diff)
downloadjenkins.debian.net-0ee0169ef19a9e0f26db63837acc2d5a6e1e7c7e.tar.xz
reproducible: include duration in rbuild logs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index e76eb2c7..50f6469c 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)