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
This commit is contained in:
parent
9bc8ce7c6a
commit
c889f13493
1 changed files with 4 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue