Which is fine and it does work. The problem comes in when my Groovy script looks like this =>package utilities class MyUtilities { static void addMyFeature(def job) { job.with { description('Arbitrary feature') } } }import utilities.MyUtilities def myJob = job('example') MyUtilities.addMyFeature(myJob)
package utilities
public class JobCommonTemplate {
public static void addEmailTemplate(def job) {
job.with {
publishers {
String emailScript = readFileInWorkspace("packagename/EmailExt_TestResultSummary.groovy")
wsCleanup()
extendedEmail('asdf', '$DEFAULT_SUBJECT', '$DEFAULT_CONTENT') {
configure { node ->
node / presendScript << emailScript
node / replyTo << '$DEFAULT_REPLYTO'
node / contentType << 'default'
}
trigger(triggerName: 'StillUnstable', subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', replyTo: '$DEFAULT_REPLYTO', sendToDevelopers: true, sendToRecipientList: true)
trigger(triggerName: 'Fixed', subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', replyTo: '$DEFAULT_REPLYTO', sendToDevelopers: true, sendToRecipientList: true)
trigger(triggerName: 'Failure', subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', replyTo: '$DEFAULT_REPLYTO', sendToDevelopers: true, sendToRecipientList: true)
}
}
}
}
}Sorry, didn't knew there was such a list. I'll take it there as well.
Thank you! I'll try your suggestion once I'm in.