Skip to content

Commit

Permalink
Merge pull request #6 from nsharma-git/master
Browse files Browse the repository at this point in the history
JENKINS-31017: Description doesn't get the resolved variable
  • Loading branch information
gboissinot committed Mar 6, 2016
2 parents 693a10f + 1335ed6 commit c8058eb
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -106,7 +106,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 c8058eb

Please sign in to comment.