My Extended E-mail Notification 'Default Content' is set as below: <html> <body> *<u>Execution Results :</u>*<br> Status : $BUILD_STATUS<br> Tests run : $testCount<br> Passed : $testPassed<br> Failures : $testFailed<br> Skipped : $testSkipped<br> Build URL : $BUILD_URL<br><br> </body> </html>
My Extended E-mail Notification 'Default Pre-send Script' is set as below: def testResult = build.testResultAction def testCount = testResult.getTotalCount() def testPassed = testResult.getTotalCount() - testResult.getFailCount() - testResult.getSkipCount() def testFailed = testResult.getFailCount() def testSkipped = testResult.getSkipCount() The E-Mail get successfully triggered on every build, but the variables ($testCount, $testPassed etc.) are not replaced by their values. The text '$testPassed' is being displayed in the E-Mail body. Please let me know, what I am missing here. -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Jenkins-EMail-ext-plugin-sends-groovy-code-in-the-Email-body-tp4700497.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
