
Notifications using an HTML template for different projects
Reported by Roger Sanchez | July 9th, 2019 @ 01:20 AM
- Issue Type: Feature
- Rundeck version: (2.11.5-1)
- JDK Version: (your JDK version, sun/openjdk)
Issue:
We are using the version Rundeck 2.11.5-1 with different projects inside. We would like that each project's job send its own custom HTML file template, (every project is in different language, has different topologies, etc). E.G. the idea is to send an templated email at the start of the job, if there's a failure and if it succeds. The content has to be hardcoded in the html file (we only want to send this content).
As the documentation says in [1] it's possible to specify a template file, we follow the below example adding this line to the rundeck-config.properties -> [2]
project and job specific
rundeck.mail.[project].[jobname].template.subject=[custom
subject line]
rundeck.mail.[project].[jobname].template.file=[path to template
file]
rundeck.mail.[project].[jobname].template.log.formatted=true/false
(if true, prefix log lines with context information)
However the html file in /etc/rundeck/templates/start.html overwrites it in the notification.
We would like to know if we are doing something wrong (if it is the expected behavior) if there's a way to archive this in Rundeck, or if there's an alternative to send templated notifications in this current scenario.
Thank you.
Roger Sanchez.
[1] https://docs.rundeck.com/2.11.5/administration/email-settings.html#... [2] rundeck.mail.[My-project1].[my-job-1].start.template.file=/etc/rundeck/templates/[My-project-1]/START.html
Comments and changes to this ticket
-
Greg Schueler July 10th, 2019 @ 05:47 PM
This tracker is no longer used. Please use https://github.com/rundeck/rundeck/issues
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues