" /> BUILD ${build.result}
URL${rooturl}${build.url}
Project:${project.name}
Date:${it.timestampString}
Duration:${build.durationString}
Cause:<% build.causes.each() { cause -> %> ${cause.shortDescription} <% } %>

<% def changeSet = build.changeSet if(changeSet != null) { def hadChanges = false %> <% changeSet.each() { cs -> hadChanges = true %> <% cs.affectedFiles.each() { p -> %> <% } } if(!hadChanges) { %> <% } %>
CHANGES For the Build
  Revision <%= cs.metaClass.hasProperty('commitId') ? cs.commitId : cs.metaClass.hasProperty('revision') ? cs.revision : cs.metaClass.hasProperty('changeNumber') ? cs.changeNumber : "" %> by <%= cs.author %>: (${cs.msgAnnotated})
  ${p.editType.name} ${p.path}
No Changes

<% } %> <% try { def mbuilds = build.moduleBuilds if(mbuilds != null) { %> <% try { mbuilds.each() { m -> %> <% m.value.each() { mvnbld -> def artifactz = mvnbld.artifacts if(artifactz != null && artifactz.size() > 0) { %> <% } } } } catch(e) { // we don't do anything } %>
BUILD ARTIFACTS
${m.key.displayName}
<% artifactz.each() { f -> %>
  • ${f}
  • <% } %>

    <% } }catch(e) { // we don't do anything } %> <% def junitResultList = it.JUnitTestResult try { def cucumberTestResultAction = it.getAction("org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultAction") junitResultList.add(cucumberTestResultAction.getResult()) } catch(e) { //cucumberTestResultAction not exist in this build } if (junitResultList.size() > 0) { %> <% junitResultList.each{ junitResult -> %> <% junitResult.getChildren().each { packageResult -> %> <% packageResult.getFailedTests().each{ failed_test -> %> <% } } } %>
    ${junitResultList.first().displayName}
    Name: ${packageResult.getName()} Failed: ${packageResult.getFailCount()} test(s), Passed: ${packageResult.getPassCount()} test(s), Skipped: ${packageResult.getSkipCount()} test(s), Total: ${packageResult.getPassCount()+packageResult.getFailCount()+packageResult.getSkipCount()} test(s)
  • Failed: ${failed_test.getFullName()}

  • <% } %> <% if(build.result==hudson.model.Result.FAILURE) { %> <% build.getLog(100).each() { line -> %> <% } %>
    CONSOLE OUTPUT
    ${org.apache.commons.lang.StringEscapeUtils.escapeHtml(line)}

    <% } %>