Would you please post once and by the way your question has already been answered by the author of the plugin.
From: <jenkinsci-users@googlegroups.com> on behalf of siva varma Datla <sivavarma...@gmail.com> Reply-To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com> Date: Wednesday, February 1, 2017 at 2:21 PM To: Jenkins Users <jenkinsci-users@googlegroups.com> Subject: Jenkins email notificatiosn for failed build along with failed scenarios in the email body I am kind of new to jenkins can someone help me please my Groovy syntax is node { echo 'Hello World' } node { notifyFailure() /* ... existing build steps ... */ } def notifyFailure() { emailext ( subject: "FAILURE: Job '${JOB_NAME} [${BUILD_NUMBER}]'", body: '''<p>FAILURE: Job '${JOB_NAME} [${BUILD_NUMBER}]':</p> <p>Check console output at "<a href='${BUILD_URL}consoleText'>${JOB_NAME} [${BUILD_NUMBER}]</a>"</p> ${BUILD_LOG_EXCERPT, start="^Hello World", end="^Finished: FAILURE$"}''', to: 'xxxxxxxx...@domain.com' ) } My console o/p is Started by user [Pipeline] node Running on in /ci-build/.jenkins/workspace/ [Pipeline] { [Pipeline] echo Hello World [Pipeline] } [Pipeline] // node [Pipeline] node Running on /ci-build/.jenkins/workspace/ [Pipeline] { [Pipeline] emailext Sending email to: xxxxxxxx...@domain.com [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE My email notification: STARTED: Job 'testemail [247]': [Pipeline] } [Pipeline] // node [Pipeline] node Running on SER26VVM323 in /ci-build/.jenkins/workspace/ncrtestemail [Pipeline] { I want an email notification with status and some part of console o/p in my email body starting from Hello World to Finished: FAILURE. Could you please help me to make some changes in that script. I appreciate your help Thanks & Regards -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cf219fce-0a71-4d35-95b6-71cd958a465e%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/cf219fce-0a71-4d35-95b6-71cd958a465e%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5B46119E-F004-4769-91B5-A38064E3A2DE%40cisco.com. For more options, visit https://groups.google.com/d/optout.