From a94f88aabaf7a51445e39c62c507293af0daced5 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 3 Dec 2013 15:19:38 +0100 Subject: [PATCH] contrib/bkr: fix detection of URLs in Jenkins Signed-off-by: Thomas Haller --- contrib/rh-bkr/bkr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/rh-bkr/bkr.py b/contrib/rh-bkr/bkr.py index e5ae0def35..094fd82b34 100755 --- a/contrib/rh-bkr/bkr.py +++ b/contrib/rh-bkr/bkr.py @@ -128,7 +128,8 @@ class UploadFileJenkins(UploadFile): m = re.match('^artifact/.*' + self.pattern + '.*$', a.group(1)) if m: u = mainpage + m.group(0) - if not u.endswith('/*fingerprint*/'): + if not u.endswith('/*fingerprint*/') and \ + not u.endswith('/*view*/'): urls.append(u) if not urls: raise Exception("Could not detect any URLs on jenkins for '%s' (see %s%s/)" % (self.uri, UploadFileJenkins.jenkins_base_url, self.jid))