I have configured jenkins to send mail to specific people for every build. I want to send test report along with text. How to do that? If you can help.
Asked
Active
Viewed 409 times
2 Answers
1
Simply use Email-ext plugin - https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin and use it in jenkins job 'editable email notification'

Testujaca Malpeczka
- 142
- 1
- 3
0
emailext subject: "FAILED: Job '\${env.JOB_NAME} [\${env.BUILD_NUMBER}]'",
mimeType: "text/html",
body: \"""Job '\${env.JOB_NAME} - Build # [\${env.BUILD_NUMBER}]' - FAILED:</p>
<p>Check console output at "<a href='\${env.BUILD_URL}'>\${env.JOB_NAME} [\${env.BUILD_NUMBER}]</a>"</p>
<p>Check test results at "<a href='\${env.BUILD_URL}cucumber-html-reports/overview-features.html'>Cucumber reports</a>"</p>\""",
to:'user1@gmail.com,user2@gmail.com'
if you use a pipeline job here is an example

Ibtissam
- 509
- 3
- 8
- 21