[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: only unregister a build if SRCPKGID is set
Holger Levsen
holger at layer-acht.org
Tue Dec 20 10:38:26 UTC 2016
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 4e7a6f1e1f43517004ef50487b3b53ab86ef724e
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Dec 20 11:37:49 2016 +0100
reproducible Debian: only unregister a build if SRCPKGID is set
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 90d4a67..ed762e8 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -310,7 +310,9 @@ handle_reproducible() {
unregister_build() {
# unregister this build so it will immeditiatly tried again
- query_db "UPDATE schedule SET date_build_started = NULL, job = NULL WHERE package_id=$SRCPKGID"
+ if [ -n "$SRCPKGID" ] ; then
+ query_db "UPDATE schedule SET date_build_started = NULL, job = NULL WHERE package_id=$SRCPKGID"
+ fi
NOTIFY=""
}
--
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