Question

I want to write a custom email template for Jenkins using the email-ext plugin. The documentation mentions I can use JavaScript for this, but has no further JavaScript-specific documentation.

I would much prefer to use JavaScript instead of Groovy; all of the examples I have been able to find use the latter.

How do I go about writing a template like this in JavaScript? Which API do I use? How do I do the actual templating--is there some template format, or do I just return a string, or something else entirely?

Was it helpful?

Solution

Only Groovy and Jelly engines are supported (or were supported as of a month ago).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top