Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Varghese2014-05-30 18:49:07 -0400
committerRoy Varghese2014-05-30 18:49:07 -0400
commit991fd8b76797ba664d7c495cd5f8fa2cda9801b8 (patch)
tree309ceac3b96e42f8b911479b9978f1d336279c56 /hudson-core/src/main/resources/hudson
parent775b0c4e045f809ca528acefdb224c3a56f43b7f (diff)
downloadorg.eclipse.hudson.core-991fd8b76797ba664d7c495cd5f8fa2cda9801b8.tar.gz
org.eclipse.hudson.core-991fd8b76797ba664d7c495cd5f8fa2cda9801b8.tar.xz
org.eclipse.hudson.core-991fd8b76797ba664d7c495cd5f8fa2cda9801b8.zip
Add a placeholder for top level items that cannot be read/loaded.
If for some reason a job config.xml gets deleted or corrupted while Hudson is still running, it can prevent all the jobs from displaying making hudson unusable. This fix returns a placeholder that displays the name and the cause of the error in a tooltip, so that an admin can shut down Hudson safely and fix the error at an appropriate time. Signed-off-by: Roy Varghese <rovarghe@gmail.com>
Diffstat (limited to 'hudson-core/src/main/resources/hudson')
-rw-r--r--hudson-core/src/main/resources/hudson/views/JobColumn/column.jelly8
1 files changed, 7 insertions, 1 deletions
diff --git a/hudson-core/src/main/resources/hudson/views/JobColumn/column.jelly b/hudson-core/src/main/resources/hudson/views/JobColumn/column.jelly
index 73b6733d..92ac024b 100644
--- a/hudson-core/src/main/resources/hudson/views/JobColumn/column.jelly
+++ b/hudson-core/src/main/resources/hudson/views/JobColumn/column.jelly
@@ -21,7 +21,13 @@
style="${indenter.getCss(job)}"
onmouseover="this.className='jobDescription hover';return true;"
onmouseout="this.className='jobDescription';return true;">
- <a href="${jobBaseUrl}${job.shortUrl}">${job.displayName}</a>
+ <j:if test="${h.isBrokenItem(job)}">
+ <a class="redbold" href="#${job.displayName}">${job.displayName}</a>
+ </j:if>
+
+ <j:if test="${!h.isBrokenItem(job)}">
+ <a href="${jobBaseUrl}${job.shortUrl}">${job.displayName}</a>
+ </j:if>
<j:if test="${!empty(job.description)}">
<div class="jobDescriptionDetails">
<table border="0">

Back to the top