[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible Debian: improve stale-builds.log

Holger Levsen holger at layer-acht.org
Sat Jan 7 09:13:04 UTC 2017


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 b2d3a7726302541c3d60f26501f6d7c8ffa8882c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Jan 7 10:10:21 2017 +0100

    reproducible Debian: improve stale-builds.log
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_build.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 0be8f7e..43b36ee 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -466,10 +466,9 @@ choose_package() {
 	if [ -s "$BAD_BUILDS" ] ; then
 		local STALELOG=/var/log/jenkins/reproducible-stale-builds.log
 		# reproducible-stale-builds.log is mailed once a day by reproducible_maintenance.sh
-		echo "$(date -u) - stale builds found, cleaning db from these:" | tee -a $STALELOG
+		echo -n "$(date -u) - stale builds found, cleaning db from these: " | tee -a $STALELOG
 		cat $BAD_BUILDS | tee -a $STALELOG
 		query_db "UPDATE schedule SET date_build_started = NULL, job = NULL WHERE job LIKE '${JOB_PREFIX}%'"
-		echo >> $STALELOG
 	fi
 	rm -f $BAD_BUILDS
 	# mark build attempt, first test if none else marked a build attempt recently

-- 
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