From 4a21194da70a17f4168a774559a747843e88e3ed Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 9 Sep 2017 16:36:58 -0600 Subject: [PATCH] Add zuul_log_url to emit-job-header Just the log path without the url ... not so useful. Change-Id: Ifdfa44e4e7742470631e31a8fd8fb93852d24c47 --- roles/emit-job-header/README.rst | 7 +++++++ roles/emit-job-header/tasks/main.yaml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 roles/emit-job-header/README.rst diff --git a/roles/emit-job-header/README.rst b/roles/emit-job-header/README.rst new file mode 100644 index 000000000..bdb97c7ed --- /dev/null +++ b/roles/emit-job-header/README.rst @@ -0,0 +1,7 @@ +Log a few lines about the job. + +**Role Variables** + +.. zuul:rolevar:: zuul_log_url + + Base URL where logs are to be found. diff --git a/roles/emit-job-header/tasks/main.yaml b/roles/emit-job-header/tasks/main.yaml index 11319c720..8bd780707 100644 --- a/roles/emit-job-header/tasks/main.yaml +++ b/roles/emit-job-header/tasks/main.yaml @@ -3,5 +3,5 @@ when: zuul.change_url is defined - debug: - msg: "At completion, logs for this job will be availble at {{ log_path }}" - when: log_path is defined + msg: "At completion, logs for this job will be availble at "{{ zuul_log_url }}/{{ log_path }}" + when: zuul_log_url is defined and log_path is defined