Skip to content

Commit

Permalink
[JENKINS-39972] export fullName and fullDisplayName (#2644)
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 authored and oleg-nenashev committed Nov 28, 2016
1 parent cbb5252 commit 5cc21bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/hudson/model/AbstractItem.java
Expand Up @@ -354,12 +354,14 @@ public void movedTo(DirectlyModifiableTopLevelItemGroup destination, AbstractIte
*/
public abstract Collection<? extends Job> getAllJobs();

@Exported
public final String getFullName() {
String n = getParent().getFullName();
if(n.length()==0) return getName();
else return n+'/'+getName();
}

@Exported
public final String getFullDisplayName() {
String n = getParent().getFullDisplayName();
if(n.length()==0) return getDisplayName();
Expand Down

0 comments on commit 5cc21bc

Please sign in to comment.