From ddc33c5dc42c2d495ce98309dff4ea99663db88a Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 30 Mar 2019 16:10:54 -0400 Subject: [PATCH] Add trailing slash for log url Both on logs.o.o and vexxhost swift object-storage, without a trailing slash, a request will get 301 to new location with trailing slash. By adding a trailing slash here, and since this is usually a directory, we can avoid a 301 redirect for browsers. Note, zuul_return for zuul upload-logs and upload-logs-swift does include trailing slash. Change-Id: Ie58f3922680806a5c1865a44bb379ef66e2992fd Signed-off-by: Paul Belanger --- roles/emit-job-header/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/emit-job-header/tasks/main.yaml b/roles/emit-job-header/tasks/main.yaml index d98aeb4fd..2e35a3ed6 100644 --- a/roles/emit-job-header/tasks/main.yaml +++ b/roles/emit-job-header/tasks/main.yaml @@ -17,7 +17,7 @@ Triggered by: {{ zuul.change_url }} {% endif %} {% if zuul_log_url is defined and zuul_log_path is defined %} - Log URL (when completed): {{ zuul_log_url }}/{{ zuul_log_path }} + Log URL (when completed): {{ zuul_log_url }}/{{ zuul_log_path }}/ {% endif %} - name: Print node information