emailext attachLog: true, body: ' ${SCRIPT, template="html/test.groovy"}', subject: 'Test of email', to: 'somea...@somedomain.com'
I am able to use email-ext with pipeline to send emails. I am trying to use jelly templates. I do not see an option for the template processor in the following. I tried adding SCRIPT to the body.
emailext attachLog: true, body: ' ${SCRIPT, template="html/test.groovy"}', subject: 'Test of email', to: 'somea...@somedomain.com'
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f7ed76fc-7c0d-4b5d-b582-5e39d468809d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The biggest hurdle at this point is that email-ext uses token macro for token replacement and token macro is built around AbstractBuild, which pipeline does not use. I am looking into adding the capability to token macro, and thus email-ext. It's something I am actively working on.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f25baa0e-8051-4e1a-8f75-d3ed4fdea15f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d4a6cde1-3f7f-4178-9394-a08cefcdf2d4%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d4a6cde1-3f7f-4178-9394-a08cefcdf2d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/turlQIsPgCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd12VDOobAnY6HmJybEWkRps8meY1ODndWxU3nbPeuj_Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d4a6cde1-3f7f-4178-9394-a08cefcdf2d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/turlQIsPgCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd12VDOobAnY6HmJybEWkRps8meY1ODndWxU3nbPeuj_Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANDoOJ4%3DxdABfJN8XVQJDU97zJJe6Or9wDXKW6dTcOABmfnghA%40mail.gmail.com.
emailext body: '${JELLY_SCRIPT,template="/path/to/templatefile.template"}', subject: 'subject', to: 'myt...@test.com', replyTo: 'jen...@test.com', mimeType: 'text/html';
java.lang.NoSuchMethodError: No such DSL method 'CHANGES' found among steps
So this does not really seam to work? Or is there some error in my syntax?
Regards,
Seb