[FIXED HUDSON-3152]

In 1.288. Builds blocked by the shut-down process now reports its status accordingly.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15916 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-03-01 03:28:33 +00:00
1 parent 712ebaecf6
commit e0971a5305
4 files changed
+34 -18

No files matched your search

+9
View File
@@ -1074,6 +1074,15 @@ public class Functions {
}
}
/**
* Prepend a prefix only when there's the specified body.
*/
public String prepend(String prefix, String body) {
if(body!=null && body.length()>0)
return prefix+body;
return body;
}
private static final Pattern SCHEME = Pattern.compile("[a-z]+://.+");
/**
+4 -1
View File
@@ -1063,8 +1063,11 @@ public class Queue extends ResourceController implements Saveable {
@Override
public String getWhy() {
Label label = task.getAssignedLabel();
Hudson hudson = Hudson.getInstance();
if(hudson.isQuietingDown())
return Messages.Queue_HudsonIsAboutToShutDown();
Label label = task.getAssignedLabel();
if (hudson.getNodes().isEmpty())
label = null; // no master/slave. pointless to talk about nodes