location of email-ext template file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

location of email-ext template file

esharish
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

slide

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <[hidden email]> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com.
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

esharish
Thanks Slide, from reading plugin wiki, it looks I need to make a copy of jelly template(from github?) with custom name and edit it and follow below steps pasted from wiki:

Using custom Jelly scripts (those not packaged with email-ext) requires the cooperation of your Hudson administrator. The steps are relatively simple:

  1. Create the Jelly script. The name of the script should be <name>.jelly. It is important the name ends in .jelly.
  2. Have your Jenkins administrator place the script inside $JENKINS_HOME_\email-templates_.


On Sun, Mar 1, 2015 at 5:05 PM, Slide <[hidden email]> wrote:

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <[hidden email]> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%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/_FgZG06aqGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

slide
The other option is if you install the config-file-provider plugin, you can put the template in there and not have to worry about using the file system location. I need to go and update the wiki with a bunch of information...

On Sun, Mar 1, 2015 at 8:42 AM Harish ES <[hidden email]> wrote:
Thanks Slide, from reading plugin wiki, it looks I need to make a copy of jelly template(from github?) with custom name and edit it and follow below steps pasted from wiki:

Using custom Jelly scripts (those not packaged with email-ext) requires the cooperation of your Hudson administrator. The steps are relatively simple:

  1. Create the Jelly script. The name of the script should be <name>.jelly. It is important the name ends in .jelly.
  2. Have your Jenkins administrator place the script inside $JENKINS_HOME_\email-templates_.


On Sun, Mar 1, 2015 at 5:05 PM, Slide <[hidden email]> wrote:

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <[hidden email]> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%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/_FgZG06aqGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com.
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdaVCnstwympfdemOZJxGyF0jfpxayuDF1HVUz3B%2BUTUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Chris T
And how is "config-file-provider" used?

In the emailext:
body: '${JELLY_SCRIPT, template="managed:<name_of_my_config_file>"}',
or
body: '${SCRIPT, template="managed:<name_of_my_config_file>"}',

But this isn't working for me.



On Sunday, March 1, 2015 at 4:16:19 PM UTC-5, slide wrote:
The other option is if you install the config-file-provider plugin, you can put the template in there and not have to worry about using the file system location. I need to go and update the wiki with a bunch of information...

On Sun, Mar 1, 2015 at 8:42 AM Harish ES <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="I0ufw08Co2QJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hari...@...> wrote:
Thanks Slide, from reading plugin wiki, it looks I need to make a copy of jelly template(from github?) with custom name and edit it and follow below steps pasted from wiki:

Using custom Jelly scripts (those not packaged with email-ext) requires the cooperation of your Hudson administrator. The steps are relatively simple:

  1. Create the Jelly script. The name of the script should be <name>.jelly. It is important the name ends in .jelly.
  2. Have your Jenkins administrator place the script inside $JENKINS_HOME_\email-templates_.


On Sun, Mar 1, 2015 at 5:05 PM, Slide <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="I0ufw08Co2QJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">slide...@...> wrote:

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="I0ufw08Co2QJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hari...@...> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="I0ufw08Co2QJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="I0ufw08Co2QJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="I0ufw08Co2QJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

slide
Do you have the config-file-provider plugin installed? If so, you specify the NAME of the template that you create in the managed scripts area of the global configuration after managed:

On Wed, Dec 6, 2017 at 10:24 AM Chris T <[hidden email]> wrote:
And how is "config-file-provider" used?

In the emailext:
body: '${JELLY_SCRIPT, template="managed:<name_of_my_config_file>"}',
or
body: '${SCRIPT, template="managed:<name_of_my_config_file>"}',

But this isn't working for me.



On Sunday, March 1, 2015 at 4:16:19 PM UTC-5, slide wrote:
The other option is if you install the config-file-provider plugin, you can put the template in there and not have to worry about using the file system location. I need to go and update the wiki with a bunch of information...

On Sun, Mar 1, 2015 at 8:42 AM Harish ES <[hidden email]> wrote:
Thanks Slide, from reading plugin wiki, it looks I need to make a copy of jelly template(from github?) with custom name and edit it and follow below steps pasted from wiki:

Using custom Jelly scripts (those not packaged with email-ext) requires the cooperation of your Hudson administrator. The steps are relatively simple:

  1. Create the Jelly script. The name of the script should be <name>.jelly. It is important the name ends in .jelly.
  2. Have your Jenkins administrator place the script inside $JENKINS_HOME_\email-templates_.


On Sun, Mar 1, 2015 at 5:05 PM, Slide <[hidden email]> wrote:

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <[hidden email]> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%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/_FgZG06aqGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com.
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com.
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVf2s_2oYGPsKMGoc1cyW-4AFEMAeYH%2BCz0P5L_XXQuH%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Chris T
Thanks slide on the fast response!
So yes I do have config-file-provider plugin installed.
I've attached screenshots of screenshots of my set up.

In my pipeline Jenkinsfile, I would add:
                emailext(
                    to: '<an_email>',
                    subject: 'test email',
                    body:'${JELLY_SCRIPT, template="managed:JellyEmailTemplate.jelly"}' ,
                    mimeType: 'text/html'
                )

But the email response would say:

Jelly file [managed:JellyEmailTemplate.jelly] was not found in $JENKINS_HOME/email-templates.


Do you know why the pipeline doesn't pick up my config files?




On Wednesday, December 6, 2017 at 12:25:55 PM UTC-5, slide wrote:
Do you have the config-file-provider plugin installed? If so, you specify the NAME of the template that you create in the managed scripts area of the global configuration after managed:

On Wed, Dec 6, 2017 at 10:24 AM Chris T <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ely2wLYrCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">chris.t...@...> wrote:
And how is "config-file-provider" used?

In the emailext:
body: '${JELLY_SCRIPT, template="managed:<name_of_my_config_file>"}',
or
body: '${SCRIPT, template="managed:<name_of_my_config_file>"}',

But this isn't working for me.



On Sunday, March 1, 2015 at 4:16:19 PM UTC-5, slide wrote:
The other option is if you install the config-file-provider plugin, you can put the template in there and not have to worry about using the file system location. I need to go and update the wiki with a bunch of information...

On Sun, Mar 1, 2015 at 8:42 AM Harish ES <[hidden email]> wrote:
Thanks Slide, from reading plugin wiki, it looks I need to make a copy of jelly template(from github?) with custom name and edit it and follow below steps pasted from wiki:

Using custom Jelly scripts (those not packaged with email-ext) requires the cooperation of your Hudson administrator. The steps are relatively simple:

  1. Create the Jelly script. The name of the script should be <name>.jelly. It is important the name ends in .jelly.
  2. Have your Jenkins administrator place the script inside $JENKINS_HOME_\email-templates_.


On Sun, Mar 1, 2015 at 5:05 PM, Slide <[hidden email]> wrote:

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <[hidden email]> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Ely2wLYrCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/753c223c-90cd-4770-9c75-6de9afbc0446%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Config File Page.JPG (19K) Download Attachment
Config File.JPG (87K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

slide
Just for kicks, can you try removing .jelly from the name of the template?

On Wed, Dec 6, 2017 at 12:27 PM Chris T <[hidden email]> wrote:
Thanks slide on the fast response!
So yes I do have config-file-provider plugin installed.
I've attached screenshots of screenshots of my set up.

In my pipeline Jenkinsfile, I would add:
                emailext(
                    to: '<an_email>',
                    subject: 'test email',
                    body:'${JELLY_SCRIPT, template="managed:JellyEmailTemplate.jelly"}' ,
                    mimeType: 'text/html'
                )

But the email response would say:

Jelly file [managed:JellyEmailTemplate.jelly] was not found in $JENKINS_HOME/email-templates.


Do you know why the pipeline doesn't pick up my config files?





On Wednesday, December 6, 2017 at 12:25:55 PM UTC-5, slide wrote:
Do you have the config-file-provider plugin installed? If so, you specify the NAME of the template that you create in the managed scripts area of the global configuration after managed:

On Wed, Dec 6, 2017 at 10:24 AM Chris T <[hidden email]> wrote:
And how is "config-file-provider" used?

In the emailext:
body: '${JELLY_SCRIPT, template="managed:<name_of_my_config_file>"}',
or
body: '${SCRIPT, template="managed:<name_of_my_config_file>"}',

But this isn't working for me.



On Sunday, March 1, 2015 at 4:16:19 PM UTC-5, slide wrote:
The other option is if you install the config-file-provider plugin, you can put the template in there and not have to worry about using the file system location. I need to go and update the wiki with a bunch of information...

On Sun, Mar 1, 2015 at 8:42 AM Harish ES <[hidden email]> wrote:
Thanks Slide, from reading plugin wiki, it looks I need to make a copy of jelly template(from github?) with custom name and edit it and follow below steps pasted from wiki:

Using custom Jelly scripts (those not packaged with email-ext) requires the cooperation of your Hudson administrator. The steps are relatively simple:

  1. Create the Jelly script. The name of the script should be <name>.jelly. It is important the name ends in .jelly.
  2. Have your Jenkins administrator place the script inside $JENKINS_HOME_\email-templates_.


On Sun, Mar 1, 2015 at 5:05 PM, Slide <[hidden email]> wrote:

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <[hidden email]> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%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/_FgZG06aqGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com.
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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/753c223c-90cd-4770-9c75-6de9afbc0446%40googlegroups.com.
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVefYdPiAnxJqBi_13SM1gc58HtN5GyvRYq0R9oeKp0QMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

jerome-2
In reply to this post by Chris T
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4d6da8a2-8b3e-45c2-8545-bf858e768378%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Chris T
In reply to this post by slide
I originally had the template name without ".jelly", but got same (not working) results.

On Wednesday, December 6, 2017 at 3:01:42 PM UTC-5, slide wrote:
Just for kicks, can you try removing .jelly from the name of the template?

On Wed, Dec 6, 2017 at 12:27 PM Chris T <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="EoTrAzc0CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">chris.t...@...> wrote:
Thanks slide on the fast response!
So yes I do have config-file-provider plugin installed.
I've attached screenshots of screenshots of my set up.

In my pipeline Jenkinsfile, I would add:
                emailext(
                    to: '<an_email>',
                    subject: 'test email',
                    body:'${JELLY_SCRIPT, template="managed:JellyEmailTemplate.jelly"}' ,
                    mimeType: 'text/html'
                )

But the email response would say:

Jelly file [managed:JellyEmailTemplate.jelly] was not found in $JENKINS_HOME/email-templates.


Do you know why the pipeline doesn't pick up my config files?





On Wednesday, December 6, 2017 at 12:25:55 PM UTC-5, slide wrote:
Do you have the config-file-provider plugin installed? If so, you specify the NAME of the template that you create in the managed scripts area of the global configuration after managed:

On Wed, Dec 6, 2017 at 10:24 AM Chris T <[hidden email]> wrote:
And how is "config-file-provider" used?

In the emailext:
body: '${JELLY_SCRIPT, template="managed:<name_of_my_config_file>"}',
or
body: '${SCRIPT, template="managed:<name_of_my_config_file>"}',

But this isn't working for me.



On Sunday, March 1, 2015 at 4:16:19 PM UTC-5, slide wrote:
The other option is if you install the config-file-provider plugin, you can put the template in there and not have to worry about using the file system location. I need to go and update the wiki with a bunch of information...

On Sun, Mar 1, 2015 at 8:42 AM Harish ES <[hidden email]> wrote:
Thanks Slide, from reading plugin wiki, it looks I need to make a copy of jelly template(from github?) with custom name and edit it and follow below steps pasted from wiki:

Using custom Jelly scripts (those not packaged with email-ext) requires the cooperation of your Hudson administrator. The steps are relatively simple:

  1. Create the Jelly script. The name of the script should be <name>.jelly. It is important the name ends in .jelly.
  2. Have your Jenkins administrator place the script inside $JENKINS_HOME_\email-templates_.


On Sun, Mar 1, 2015 at 5:05 PM, Slide <[hidden email]> wrote:

Check the wiki, there is information there on that exact thing.


On Sun, Mar 1, 2015, 03:59 esharish <[hidden email]> wrote:
I can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory or Jenkins home to edit it. Where can I edit this default html.jelly template? I am using latest Jenkins 1.598 and email-ext template 2.39.

--
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/96e7e9f6-d4c9-4e77-8ca7-00bdce9462da%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/_FgZG06aqGc/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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVchzFuyQHWuw4-CsxqZ-tjSuGxteE9xZkMkWaJX%3DAcKcw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/CACKaJRPcdnhiQwU0DevOju-5U%3DDJYxwhPKo97Zt1uTtnZUUxhg%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/b943c080-e6af-4e56-bee2-01e17d5b17a2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="EoTrAzc0CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/753c223c-90cd-4770-9c75-6de9afbc0446%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/753c223c-90cd-4770-9c75-6de9afbc0446%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/753c223c-90cd-4770-9c75-6de9afbc0446%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/753c223c-90cd-4770-9c75-6de9afbc0446%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5e1a23a7-514e-4834-b9a9-3b2867d86aa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Chris T
In reply to this post by jerome-2
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, [hidden email] 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

slide
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 <[hidden email]> 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, [hidden email] 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com.
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Daniel Beck
In reply to this post by Chris T

> On 6. Dec 2017, at 19:42, Chris T <[hidden email]> wrote:
>
> So yes I do have config-file-provider plugin installed.

Have you restarted Jenkins since you installed either of these plugins? Optional features may not be available otherwise.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/E460F9C5-A881-464D-8DEF-98D69DE6870D%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Chris T
The plugins were install a while ago, and have been restarted (at least a few times) since then.

On Wednesday, December 6, 2017 at 5:02:04 PM UTC-5, Daniel Beck wrote:

> On 6. Dec 2017, at 19:42, Chris T <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="HtHQqcg6CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">chris.t...@...> wrote:
>
> So yes I do have config-file-provider plugin installed.

Have you restarted Jenkins since you installed either of these plugins? Optional features may not be available otherwise.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8d20560a-7bd1-4584-bcf6-c57199c87bc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Chris T
In reply to this post by slide
Just to narrow down possible failure points, I did make a simple free style job where I added in the same command in the default content box of the editable email notification. And got same results as in my pipeline.

On Wednesday, December 6, 2017 at 4:26:12 PM UTC-5, slide wrote:
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="1bMra9M4CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">chris.t...@...> 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, [hidden email] 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="1bMra9M4CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/78326aec-7f5e-42ba-9f59-70ddd9a0cca1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

slide
Can you try enabling debug mode for email-ext (there is a checkbox in the global config, possibly under advanced) and see if there is anything in the logs that could help pinpoint the issue? Also, I didn't see what versions of Jenkins, email-ext and config-file-provider you are using, can you share that as well?

On Wed, Dec 6, 2017 at 3:46 PM Chris T <[hidden email]> wrote:
Just to narrow down possible failure points, I did make a simple free style job where I added in the same command in the default content box of the editable email notification. And got same results as in my pipeline.


On Wednesday, December 6, 2017 at 4:26:12 PM UTC-5, slide wrote:
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 <[hidden email]> 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, [hidden email] 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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/78326aec-7f5e-42ba-9f59-70ddd9a0cca1%40googlegroups.com.
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfEL7cMjia%3DVFyPS%2BAAQmMgeHzTnEErBg55r_%2Bn7sCbVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: location of email-ext template file

Chris T
I will try that, and for versions:

Jenkins: 2.86

Email ext plugin: 2.60

Config File Provider: 2.16.4




On Thursday, December 7, 2017 at 10:44:26 AM UTC-5, slide wrote:
Can you try enabling debug mode for email-ext (there is a checkbox in the global config, possibly under advanced) and see if there is anything in the logs that could help pinpoint the issue? Also, I didn't see what versions of Jenkins, email-ext and config-file-provider you are using, can you share that as well?

On Wed, Dec 6, 2017 at 3:46 PM Chris T <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="bnZagpLFBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">chris.t...@...> wrote:
Just to narrow down possible failure points, I did make a simple free style job where I added in the same command in the default content box of the editable email notification. And got same results as in my pipeline.


On Wednesday, December 6, 2017 at 4:26:12 PM UTC-5, slide wrote:
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 <[hidden email]> 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, [hidden email] 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 jenkinsci-use...@googlegroups.com.

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/38b1229b-248c-4a53-9308-45c2006213f2%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="bnZagpLFBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/78326aec-7f5e-42ba-9f59-70ddd9a0cca1%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/78326aec-7f5e-42ba-9f59-70ddd9a0cca1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/78326aec-7f5e-42ba-9f59-70ddd9a0cca1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/78326aec-7f5e-42ba-9f59-70ddd9a0cca1%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96564b74-00c2-4bd9-b2a9-1ece5900b98f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.