Merge "Work around a bug in the Jenkins queue API."

This commit is contained in:
Dan Albert 2015-03-23 20:32:15 +00:00 committed by Gerrit Code Review
commit 27b38599dc

View File

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