diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-20 20:26:54 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-05 14:59:12 +0200 |
commit | c74659e18e48a18ff8e941ea982eec94c95f5297 (patch) | |
tree | cb96bd3ff31f9fdbf60bdbcf1a83b92459cdbd6d /bin/reproducible_build.sh | |
parent | 0ce20ad2539d55c48340ca68e46dae1741d1bfdf (diff) | |
download | jenkins.debian.net-c74659e18e48a18ff8e941ea982eec94c95f5297.tar.xz |
reproducible: scheduler,build: accept a --noisy option to tell the builder to announce the build (with the build url) in the IRC channel
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 8a1522f9..7a0c8bb4 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -325,7 +325,7 @@ call_debbindiff() { } choose_package () { - local RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT s.suite, s.id, s.name, sch.date_scheduled, sch.save_artifacts, sch.notify, s.notify_maintainer FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id WHERE sch.date_build_started = '' ORDER BY date_scheduled LIMIT 1") + local RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT s.suite, s.id, s.name, sch.date_scheduled, sch.save_artifacts, sch.notify, s.notify_maintainer, sch.builder FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id WHERE sch.date_build_started = '' ORDER BY date_scheduled LIMIT 1") SUITE=$(echo $RESULT|cut -d "|" -f1) SRCPKGID=$(echo $RESULT|cut -d "|" -f2) SRCPACKAGE=$(echo $RESULT|cut -d "|" -f3) @@ -342,6 +342,10 @@ choose_package () { SAVE_ARTIFACTS=$(echo $RESULT|cut -d "|" -f5) NOTIFY=$(echo $RESULT|cut -d "|" -f6) NOTIFY_MAINTAINER=$(echo $RESULT|cut -d "|" -f7) + local DEBUG_URL=$(echo $RESULT|cut -d "|" -f8) + if [ "$DEBUG_URL" = "TBD" ] ; then + irc_message "The build of $SRCPACKAGE/$SUITE is starting at ${BUILD_URL}consoleFull" + fi if [ -z "$RESULT" ] ; then echo "No packages scheduled, sleeping 30m." sleep 30m |