am 7472b500: am 27b38599: Merge "Work around a bug in the Jenkins queue API."

* commit '7472b500a3545b603c56b3fb7f6f7075c3872b84':
  Work around a bug in the Jenkins queue API.
This commit is contained in:
Dan Albert 2015-03-24 02:58:59 +00:00 committed by Android Git Automerger
commit 3190c5128d

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(