Many macros should work fine by putting them in the body or subject fields of the pipeline. SCRIPT specifically uses some things from AbstractBuild, which a pipeline job is not, so that is why SCRIPT can't be used. It would need to be updated to support pipeline jobs as well.
On Tue, May 23, 2017 at 5:32 AM <[email protected]> wrote: > Any update about that? > > I found it really missing..... can not use templates / can not use other > token macros such CHANGES... > > I think that the whole JenkinsFile concept is great but still not mature > for real use... > > > On Thursday, April 21, 2016 at 5:21:52 PM UTC+3, slide wrote: >> >> 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. >> >> On Thu, Apr 21, 2016, 06:30 Mark Bidewell <[email protected]> wrote: >> >>> Is support planed for a future release? >>> >>> >>> On Saturday, April 16, 2016 at 2:16:35 PM UTC-4, slide wrote: >>> >>>> No, this is not currently supported. Token macro, which is the basis >>>> for the SCRIPT token doesn't currently support the type of object that >>>> pipeline uses. >>>> >>>> On Tue, Feb 9, 2016 at 10:32 AM Rinaldo DiGiorgio <[email protected]> >>>> wrote: >>>> >>> 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: ' >>>>> [email protected]' >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> 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 [email protected]. >>>> >>>> >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/jenkinsci-users/f7ed76fc-7c0d-4b5d-b582-5e39d468809d%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/jenkinsci-users/f7ed76fc-7c0d-4b5d-b582-5e39d468809d%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/f25baa0e-8051-4e1a-8f75-d3ed4fdea15f%40googlegroups.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/f25baa0e-8051-4e1a-8f75-d3ed4fdea15f%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/d4a6cde1-3f7f-4178-9394-a08cefcdf2d4%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/d4a6cde1-3f7f-4178-9394-a08cefcdf2d4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd12VDOobAnY6HmJybEWkRps8meY1ODndWxU3nbPeuj_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
