Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Give Jenkins nodes useful names.
EC2 slave nodes will now include their template name and EC2 instance identifiers in the node name used throughout the Jenkins UI. Addresses [JENKINS-15078].
- Loading branch information
Showing
3 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -55,7 +55,8 @@ public EC2Slave getNode() { | ||
} | ||
|
||
public String getInstanceId() { | ||
return getName(); | ||
EC2Slave node = (EC2Slave) super.getNode(); | ||
return node.getInstanceId(); | ||
} | ||
|
||
/** | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters