Merge "Display log url when a job completes" into feature/zuulv3

This commit is contained in:
Jenkins 2017-07-21 01:18:49 +00:00 committed by Gerrit Code Review
commit 4cc3467ee0
1 changed files with 9 additions and 1 deletions

View File

@ -96,7 +96,15 @@
job: function(job) {
var $job_line = $('<span />');
if (job.url !== null) {
if (job.result !== null) {
$job_line.append(
$('<a />')
.addClass('zuul-job-name')
.attr('href', job.report_url)
.text(job.name)
);
}
else if (job.url !== null) {
$job_line.append(
$('<a />')
.addClass('zuul-job-name')