mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
fixed #401.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2811 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b0e3c3de47
commit
0971dee536
4 files changed
+30
-3
No files matched your search
@@ -140,6 +140,10 @@ public abstract class Computer implements ModelObject {
|
||||
return nodeName;
|
||||
}
|
||||
|
||||
public String getCaption() {
|
||||
return "Slave "+nodeName;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return "computer/"+getDisplayName()+"/";
|
||||
}
|
||||
|
||||
@@ -528,6 +528,9 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
|
||||
}
|
||||
|
||||
public Computer getComputer(String name) {
|
||||
if(name.equals("(master)"))
|
||||
name = "";
|
||||
|
||||
for (Computer c : computers.values()) {
|
||||
if(c.getNode().getNodeName().equals(name))
|
||||
return c;
|
||||
@@ -1444,6 +1447,16 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
|
||||
super(Hudson.getInstance());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return "master";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCaption() {
|
||||
return "Master";
|
||||
}
|
||||
|
||||
@Override
|
||||
public VirtualChannel getChannel() {
|
||||
return localChannel;
|
||||
|
||||
Reference in new issue
Block a user