Skip to main content

Jenkins jelly examples

Jelly is the way to add more information to notifications email of jenkins (using Email-ext plugin)



Here are some examples:

Text template
HTML template

Project description:

<j:jelly
xmlns:j = "jelly:core"
xmlns:st = "jelly:stapler"
xmlns:d = "jelly:define">
${project.description}
</j:jelly>

Failed tests:

<j:jelly
xmlns:j = "jelly:core"
xmlns:st = "jelly:stapler"
xmlns:d = "jelly:define">
<ul>
<j:forEach
var = "junitResult"
items = "${it.JUnitTestResult}">
<j:forEach
var = "packageResult"
items = "${junitResult.getChildren()}">
<j:forEach
var = "failed_test"
items = "${packageResult.getFailedTests()}">
<li>${failed_test.getFullName()}</li>
</j:forEach>
</j:forEach>
</j:forEach>
</ul>
</j:jelly>

Comments

Wonderful post however , I was wondering if you could write a little more on this topic? I’d be very thankful if you could elaborate a little bit more. Appreciate it !
Ziv said…
Thanks, I hope to elaborate more soon.

Popular posts from this blog

Best freeware - XML editor

As a software developer, I open XML files all the time. I a heavy commercial XML editor. But nothing can compare to a small, thin and free XML editor like 'foxe'. A great feature is has is the alignment of long XML strings to readable XML format (Shift-F8). It help lot of times when the XML file was generated by some tool and was not readable. Homepage: http://www.firstobject.com/dn_editor.htm

Jenkins error: groovy.lang.MissingPropertyException

I tried to run groovy build step and got below error. This post will describe how I solved the problem. Caught: groovy.lang.MissingPropertyException: No such property: hudson for class: script

SSL in pictures

Here is my summary on SSL (or as I like to call it 'SSL for dummies')