[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [sysadmin/gerrit-ci-matrix] /: Handle the NOT_REGISTERED result gracefully
From: Jan_Kundrát <jkt () kde ! org>
Date: 2016-10-01 0:45:38
Message-ID: E1bq8Qs-0003GL-De () code ! kde ! org
[Download RAW message or body]
Git commit 08a2a0b94cc4c80aaad3c88f2e51bbe10e574df4 by Jan Kundrát.
Committed on 29/03/2016 at 08:09.
Pushed by jkt into branch 'master'.
Handle the NOT_REGISTERED result gracefully
M +7 -5 matrix.html
http://commits.kde.org/sysadmin/gerrit-ci-matrix/08a2a0b94cc4c80aaad3c88f2e51bbe10e574df4
diff --git a/matrix.html b/matrix.html
index 29a2851..dddbc8f 100644
--- a/matrix.html
+++ b/matrix.html
@@ -103,12 +103,14 @@ function loadCI(jQuery) {
var res = job.result;
td.append(res);
td.append(' ');
- var consoleLink = job.url.replace(/\/index\.html$/, '/shell_output.log');
- if (consoleLink != job.url) {
- td.append($('<a>').attr('href', consoleLink).text('console'));
- td.append(', ');
+ if (job.url != null) {
+ var consoleLink = job.url.replace(/\/index\.html$/, '/shell_output.log');
+ if (consoleLink != job.url) {
+ td.append($('<a>').attr('href', consoleLink).text('console'));
+ td.append(', ');
+ }
+ td.append($('<a>').attr('href', job.url).text('logs'));
}
- td.append($('<a>').attr('href', job.url).text('logs'));
td.attr('title', format_duration(job.duration) + '\non ' + new Date(job.time * 1000));
if (res == 'SUCCESS') {
td.addClass(res);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic