diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-12-02 13:56:39 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-09 11:28:32 +0100 |
commit | 15e1ca5ed64dfe313d8b3c09d237a853c139200b (patch) | |
tree | 01ade6c5de0ddcc151cc22b4c26ea901df2014eb /bin | |
parent | 629ea43e9c361d2a2bed28bf093addd849029374 (diff) | |
download | jenkins.debian.net-15e1ca5ed64dfe313d8b3c09d237a853c139200b.tar.xz |
reproducible: build: rename variable: s#BUILDER_PREFIX#JOB_PREFIX#g
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index ce471cc1..83326c35 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -419,15 +419,15 @@ choose_package() { NOTIFY_MAINTAINER=$(echo $RESULT|cut -d "|" -f7) SCHEDULE_MESSAGE=$(echo $RESULT|cut -d "|" -f8) # remove previous build attempts which didnt finish correctly: - BUILDER_PREFIX="${JOB_NAME#reproducible_builder_}/" + JOB_PREFIX="${JOB_NAME#reproducible_builder_}/" BAD_BUILDS=$(mktemp --tmpdir=$TMPDIR) - sqlite3 -init $INIT ${PACKAGES_DB} "SELECT package_id, date_build_started, job FROM schedule WHERE job LIKE '${BUILDER_PREFIX}%'" > $BAD_BUILDS + sqlite3 -init $INIT ${PACKAGES_DB} "SELECT package_id, date_build_started, job FROM schedule WHERE job LIKE '${JOB_PREFIX}%'" > $BAD_BUILDS 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 cat $BAD_BUILDS | tee -a $STALELOG - sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='', job='' WHERE job LIKE '${BUILDER_PREFIX}%'" + sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='', job='' WHERE job LIKE '${JOB_PREFIX}%'" echo >> $STALELOG fi rm -f $BAD_BUILDS |