How can I write a Hudson/Jenkins email-ext template in JavaScript?

960 views Asked by At

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?

1

There are 1 answers

3
malenkiy_scot On BEST ANSWER

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