-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
Jenkinsfile
pipeline { agent any stages { ... } post { success { emailext ( attachLog: true, subject: "\$DEFAULT_SUBJECT", body: "\${JELLY_SCRIPT, template=\"managed:JellyEmailTemplate\"}", recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class:'RequesterRecipientProvider']] ) } failure { emailext ( attachLog: true, subject: "\$DEFAULT_SUBJECT", body: "\${JELLY_SCRIPT, template=\"managed:JellyEmailTemplate\"}", recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']] ) } } }
JELLY_SCRIPT
<?jelly escape-by-default='true'?> <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> <html> <head> <title>${project.name}</title> </head> <body> <b>BUILD ${build.result} ${build.getBuildStatusUrl()}</b> <j:if test="${build.isBuilding()}">IS BUILDING!!!!!!</j:if> </body> </html>
The plugin generates body in progress state.
On failure it makes right build.result === FAILURE
I'd like to have build.result === SUCCESS on post action "success"
- relates to
-
JENKINS-54477 Getting an accurate build result when sending a notification from Pipeline is harder than it needs to be
- Open