How to instruct Jenkins to look for email template in user defined path (OTHER THAN $JENKINS_HOME/email-templates)

1,212 views
Skip to first unread message

Jagadish Chandran

unread,
Mar 30, 2016, 11:44:02 AM3/30/16
to Jenkins Users
I have groovy email template(for Selenium Robot framework test execution) for Jenkins. Jenkins master is controlled by a remote team. So for placing this template in $JENKINS_HOME/email-templates, we need to raise a ticket and wait from 2 to 3 days. Also we expect, there might be changes required in template. So we are planning to put our templates inside our source code repository (GIT). so in the Jenkins test job, we checkout the test script together with email templates. How to instruct Jenkins to look for the template in workspace folder instead of $JENKINS_HOME/email-templates in Jenkins Master

Victor Martinez

unread,
Mar 30, 2016, 12:02:38 PM3/30/16
to Jenkins Users

Slide

unread,
Mar 30, 2016, 1:16:30 PM3/30/16
to Jenkins Users
You can use the config-file-provider plugin to provide templates. If you have access to edit those "files" in the Jenkins UI, then you wouldn't need them placed on the file system. Victor is correct though, those are the only two methods for accessing templates.

--
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/3b2b26eb-9d3e-47a5-8e29-381df0063bf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages