From 444c95738677593dcfed0cfd9667d4c4f0d596a3 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Fri, 20 Sep 2019 17:25:37 +0200 Subject: [PATCH] Fix live console URL Checking running job console did not work with plane zuul.opendev.org prefix Change-Id: Ia9f4ee3af1bb7871b6d1bb6768f7a1cd9d31d8a4 --- coats/openstack_gerrit_zuul_status.user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coats/openstack_gerrit_zuul_status.user.js b/coats/openstack_gerrit_zuul_status.user.js index df4a729..4e1e76f 100644 --- a/coats/openstack_gerrit_zuul_status.user.js +++ b/coats/openstack_gerrit_zuul_status.user.js @@ -26,6 +26,7 @@ const zuul_status_base = "https://zuul.opendev.org/"; // TODO: find a way to deal with multiple tenants const zuul_status_url = zuul_status_base + "api/tenant/openstack/status/change/"; +const zuul_console_url = zuul_status_base + "t/openstack/"; // /Config @@ -104,7 +105,7 @@ var main = function() { item.name = job.name; item.voting = job.voting; item.pipeline = job.pipeline; - item.url = job.result ? job.report_url : (job.url ? zuul_status_base + job.url : "#"); + item.url = job.result ? job.report_url : (job.url ? zuul_console_url + job.url : "#"); if (item.status === "running" && job.remaining_time !== null){ item.completeness = Math.round(100 * (job.elapsed_time / (job.elapsed_time + job.remaining_time))) + "%";