editable mail notification with groovy

759 views
Skip to first unread message

Nate Gelbard

unread,
Mar 15, 2013, 3:42:03 PM3/15/13
to jenkins...@googlegroups.com
Hi,
My goal is to put junit test reports into the body of HTML email.

I'm on Jenkins 1.496/Linux x64. I have installed a JDK 1.6 and Groovy on the jenkins server.
I tested a job that executes a system groovy script and it works fine.
println "hello world I am groovy"

The editable email notification examples I've found on the internet show usage like this:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<p><? println "hello world I am groovy" ?>
</body>
</html>

However the email I receive shows the code between <? and ?> was not evaluated by groovy.

How do I troubleshoot this issue?

Thanks
Nate

Slide

unread,
Mar 15, 2013, 4:39:03 PM3/15/13
to jenkins...@googlegroups.com
What examples are you talking about? Please check the wiki for the email-ext plugin to find information on how to use it.



Nate

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Website: http://earl-of-code.com

Eduardo Dias

unread,
Mar 18, 2013, 12:03:46 PM3/18/13
to jenkinsci-users
the template "html-static-analysis.jelly" shows JUnit tests results.
Other local that you can fins templates:
/$JENKINS_HOME/plugins/email-ext/WEB-INF/classes/hudson/plugins/emailext/templates/static-analysis.jelly


2013/3/15 Slide <slide...@gmail.com>



--

Atenciosamente,

Eduardo
Reply all
Reply to author
Forward
0 new messages