[Qa-jenkins-scm] [jenkins.debian.net] 06/06: reproducible: notes: do not fail when not run on jenkins due to lack of the BUILD_URL evn variable

Holger Levsen holger at moszumanska.debian.org
Tue Aug 18 11:36:15 UTC 2015


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 14ee58c5f49ed11ed5c5b57bb708263246255990
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Mon Aug 17 10:49:26 2015 +0000

    reproducible: notes: do not fail when not run on jenkins due to lack of the BUILD_URL evn variable
---
 bin/reproducible_notes.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_notes.py b/bin/reproducible_notes.py
index 15921b7..b617359 100755
--- a/bin/reproducible_notes.py
+++ b/bin/reproducible_notes.py
@@ -50,8 +50,12 @@ def load_notes():
             print_critical_message('Warning: This query produces no results: ' + query
                                    + '\nThis means there is no tested ' +
                                    'package with the name ' + pkg)
-            irc_msg('There is problem with the note for ' + pkg +
-                    ' - please have a look at ' + os.environ['BUILD_URL'])
+            try:
+                irc_msg('There is problem with the note for ' + pkg +
+                        ' - please have a look at ' + os.environ['BUILD_URL'])
+            except KeyError:
+                log.error('There is a problem with the note for %s - please '
+                          'check.', pkg)
         else:
             notes[pkg] = []
             for suite in result:

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