Jenkins Email Template Examples
If you are interested in contributing your own example please consult the readme in the repository.
Jenkins email template examples. Use the script token with the template parameter equal to your template filename. The associated email extension plugin is httpswikijenkins ci. In jenkins a pipeline is a group of events or jobs which are interlinked with one another in a sequence. We will use the html version.
In simple words jenkins pipeline is a combination of plugins that s jenkins pipeline tutorial. Like many people we use jenkins to perform several tasks automatically. Jenkins is an open source automation server it provides hundreds of plugins to support building deploying and automating any project. If you do not have access to this then you might have to ask the administrator of the jenkins instance to do this for you.
The name of the script end in the standard extension for the language groovy. Additional templates in the source code. The following examples are sourced from the the pipeline examples repository on github and contributed to by various members of the jenkins project. A groovy template to send fancy html formatted emails through the jenkins email extension plugins.
Now click the checkbox next to the email ext template plugin option. Then select the configure system option. Go to the jenkins home. The template can be named anything have your jenkins administrator place the script inside jenkins homeemail templates.
Click the install without restart button. After a build was. The jelly content and script content contain links to htmljelly textjelly groovy htmltemplate and groovy texttemplate files. Put this file there.
Create a folder email templates if it is not there. Email ext plugin src main resources hudson plugins emailext templates groovy htmltemplate find file copy path davidvanlaatum update colors to hopefully work with outlook 74be08b dec 5 2017. Here is the jenkinsfile. Go to the jenkins home page and click the manage jenkins menu option.
One of the features of jenkins is the option to send an email to the user under certain circumstances eg.