A template of the announcement you want Hudson to make. This template will be executed as a Jelly script, so you need to escape any characters that you don't want to be interpreted as XML (for < use '<').
The default value is:
<j:choose>
<j:when test="${build.result!='SUCCESS' || build.project.lastBuild.result!='SUCCESS'}">
Your attention please. Project ${build.project.name}, build number ${build.number}: ${build.result} in ${duration}.
<j:if test="${build.result!='SUCCESS'}"> Get fixing those bugs team!</j:if>
</j:when>
<j:otherwise><!-- Say nothing --></j:otherwise>
</j:choose>
You may use any of these variables in your template:
- ${build} - the current build (a hudson.model.AbstractBuild)
- ${duration} - the formatted duration of the build (e.g. '1 minute 3 seconds')
Here are some examples of how to use these objects:
- ${build.project} - the project this build is for (a hudson.model.AbstractProject)
- ${build.project.name} - the name of the project this build is for
- ${build.result} - the result of this build (a hudson.model.Result) e.g. 'SUCCESS' or 'FAILURE'
- ${build.project.lastBuild.result} - the result of the previous build