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