mirror of https://github.com/jenkinsci/jenkins.git
More helpful `SlaveComputer.toString` (#10595)
This commit is contained in:
parent
7113ca45cb
commit
72c7109df6
|
|
@ -977,6 +977,11 @@ public class SlaveComputer extends Computer {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return nodeName != null ? super.toString() + "[" + nodeName + "]" : super.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Grabs a {@link ComputerLauncher} out of {@link Node} to keep it in this {@link Computer}.
|
||||
* The returned launcher will be set to {@link #launcher} and used to carry out the actual launch operation.
|
||||
|
|
|
|||
Loading…
Reference in New Issue