Re: Plugin email-ext: use of tokens in Groovy script

2013-02-04 Thread Slide
You should be able to import the content classes, instantiate an instance of them and call the getContent method. def BUILD_ID = new BuildIdContent() def args = [ "Arg1" : "Foo", "Arg2", "Foo" ] // currently the publisher is not accessible by the groovy templates, so some tokens may not work thi

Plugin email-ext: use of tokens in Groovy script

2013-02-04 Thread Bernhard Berbuir
Hello, I am migrating my email-ext mail template to a Groovy script. My current email configuration uses a lot of tokens (${BUILD_LOG_EXCERPT}, ${CHANGES_SINCE_LAST_SUCCESS}, ${BUILD_LOG_REGEX}, ${WARNINGS_RESULT}, ${TASKS_RESULT}, ...). I do not want to implement the same functionality in Gro