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

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


Digital signature in pictures

I never remember what happens when digital signature is used. So here is my summary 'Digital signature for dummies'.