Yes, that is the point. I'm not sure why it isn't working for you, I am using pretty much the same thing in my setup and it works (though I am not sure I have tried from a pipeline job).
On Wed, Dec 6, 2017 at 1:28 PM Chris T <[email protected]> wrote: > I thought the point of config-file-provider plugin was so we don't have to > store the template in the $JENKINS_HOME/email-templates? > > > On Wednesday, December 6, 2017 at 3:08:43 PM UTC-5, [email protected] > wrote: >> >> For security reason I was told, the template must reside on the master >> (you can stash it and unstash it into the email template folder on the >> master or you can read it and write it on master node): >> >> node('master') >> { >> writeFile([file: "${JENKINS_HOME}/email-templates/mytempofile.jelly", >> text: 'template data read from other file']); >> } >> emailext body: ... >> >> At least it was my workaround until I find something less retarded. >> > -- > 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/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%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/CAPiUgVc_7yzyqw-EhG2%3De93hKnNMToS%3DHuoVN8aVs%2BCW3HCVQQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
