Skip to content
Permalink
Browse files
Merge pull request #6 from nsharma-git/master
JENKINS-31017: Description doesn't get the resolved variable
  • Loading branch information
gboissinot committed Mar 6, 2016
2 parents 693a10f + 1335ed6 commit c8058eb1afc9e9b3621d93fb88762d9f1dc1cf54
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/org/jenkinsci/plugins/scripttrigger/AbstractTrigger.java
@@ -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() {

0 comments on commit c8058eb

Please sign in to comment.