Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JENKINS-31017: Description doesn't get the resolved variable
Chaning the description method to take the last occurance of given tags in the content
In this case user would be able to set the description with variables
  • Loading branch information
Neeraj Sharma committed Oct 19, 2015
1 parent 1140990 commit 1335ed6
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -84,7 +84,11 @@ protected Action[] getScheduledActions(Node pollingNode, XTriggerLog log) {
}

private String extractDescription(String content) {
return StringUtils.substringBetween(content, "<description>", "</description>");
String [] des = StringUtils.substringsBetween(content, "<description>", "</description>");
if (des != null && des.length >=1 ) {
return des[des.length - 1];
}
return null;
}

protected boolean requiresWorkspaceForPolling() {
Expand Down

0 comments on commit 1335ed6

Please sign in to comment.