Jenkins Email Template
The email content will have the test run summary and the build artifacts download link.
Jenkins email template. We will use email ext groovy template to generate the emails. Jenkins extended e mail notification configuration for default values. Jenkins is an open source automation server it provides hundreds of plugins to support building deploying and automating any project. I luckily had a snapshot of the server prior to upgrade and can say that after the upgrade all my templates were missing from this path.
Fill the editable email notification fields. Contribute to jenkinsciemail ext plugin development by creating an account on github. Click the add post build action drop down and select the editable email notification value. Like many people we use jenkins to perform several tasks automatically.
And this post will show how. One of the features of jenkins is the option to send an email to the user under certain circumstances eg. Ok i upgraded jenkins from 1504 to 1546 recently and upgraded the emailext plugin from 2271 to what ever is available now. To send a real post build email create a new pipelinejob and name it as sample sender email.
Enter the recipient email id in the e mail notification box and select the checkbox next to the send e mail for every unstable build option. The associated email extension plugin is httpswikijenkins ci. These are some useful examples for doing various things with the email ext groovy templates. For example if the template filename is foobartemplate the email content would look like this script templatefoobartemplate.
When an email is triggered any tokens in the subject or content fields will be replaced dynamically by the actual value that it represents. The email ext plugin uses tokens to allow dynamic data to be inserted into recipient list email subject line or body. We will create a step in the jenkinsfile incorporating the email functionality. Using email ext plugin in jenkins pipeline need not be scary.