سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top