summaryrefslogtreecommitdiffstats
path: root/tools/bionicbb
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-03-23 13:29:15 -0700
committerDan Albert <danalbert@google.com>2015-03-23 13:29:15 -0700
commitc889f13493e3ae5b6a75b59a575a7d2bffbd6481 (patch)
tree18d9b0a78a517706cae76655f6d833162aa00016 /tools/bionicbb
parent9bc8ce7c6a8abc09e76b0f35064d881385861537 (diff)
downloadbionic-c889f13493e3ae5b6a75b59a575a7d2bffbd6481.zip
bionic-c889f13493e3ae5b6a75b59a575a7d2bffbd6481.tar.gz
bionic-c889f13493e3ae5b6a75b59a575a7d2bffbd6481.tar.bz2
Work around a bug in the Jenkins queue API.
https://issues.jenkins-ci.org/browse/JENKINS-27256 1.601 broke the ability to get a build's URL before the build had actually started. The bug is pseudo-fixed, but would require installing a new plugin and fixing the python jenkinsapi plugin for the time being to use /queuefix/ rather than /queue/. Just avoiding logging a URL for now. Change-Id: Ibf90e5887fc4532dac688082ad7729787897da11
Diffstat (limited to 'tools/bionicbb')
-rw-r--r--tools/bionicbb/gmail_listener.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/bionicbb/gmail_listener.py b/tools/bionicbb/gmail_listener.py
index 0cd31c9..770f0c4 100644
--- a/tools/bionicbb/gmail_listener.py
+++ b/tools/bionicbb/gmail_listener.py
@@ -190,8 +190,10 @@ def build_project(gerrit_info, dry_run, lunch_target=None):
if lunch_target is not None:
params['LUNCH_TARGET'] = lunch_target
if not dry_run:
- job = jenkins[build].invoke(build_params=params)
- url = job.get_build().baseurl
+ _ = jenkins[build].invoke(build_params=params)
+ # https://issues.jenkins-ci.org/browse/JENKINS-27256
+ # url = job.get_build().baseurl
+ url = 'URL UNAVAILABLE'
else:
url = 'DRY_RUN_URL'
print '{}({}): {} => {} {} {}'.format(