summaryrefslogtreecommitdiff
path: root/zuul/driver/gerrit/gerritconnection.py
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2020-06-26 19:13:30 -0700
committerJames E. Blair <jeblair@redhat.com>2020-08-04 13:51:56 -0700
commit3472114a679e9c9664d709fde0707cb5cea5f982 (patch)
treef6b64f672ea76040fc810d7eb832e55a3e7d6422 /zuul/driver/gerrit/gerritconnection.py
parenteec7b303fb73335647282ce964fb38d7f8a0da83 (diff)
downloadzuul-3472114a679e9c9664d709fde0707cb5cea5f982.tar.gz
Always report the status url in Gerrit checks
When using the Gerrit checks API, we only included a URL when the build completed. However, we can also supply the URL while the build is in progress. This will (at least until we start recording in-progress buildsets in the database) be the change-specific status page. Change-Id: I3202764683b57c19df25169c2b47bc9561df0e93
Diffstat (limited to 'zuul/driver/gerrit/gerritconnection.py')
-rw-r--r--zuul/driver/gerrit/gerritconnection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/zuul/driver/gerrit/gerritconnection.py b/zuul/driver/gerrit/gerritconnection.py
index 186a52d70..2abdf74eb 100644
--- a/zuul/driver/gerrit/gerritconnection.py
+++ b/zuul/driver/gerrit/gerritconnection.py
@@ -1071,9 +1071,9 @@ class GerritConnection(BaseConnection):
checkinfo['started'] = fmt(item.enqueue_time)
if item.report_time:
checkinfo['finished'] = fmt(item.report_time)
- url = item.formatStatusUrl()
- if url:
- checkinfo['url'] = url
+ url = item.formatStatusUrl()
+ if url:
+ checkinfo['url'] = url
if checkinfo:
for x in range(1, 4):
try: