The tag refers to `email-ext` plugin for Jenkins, which extends email sending options.
Questions tagged [jenkins-email-ext]
108 questions
46
votes
6 answers
Send an email on Jenkins pipeline failure
How can I add to a Jenkins pipeline an old-style post-build task which sends email when the build fails? I cannot find "Post-build actions" in the GUI for a pipeline. I know that I can wrap the entire build script try/catch, however, this seems ugly…

Mariusz Jamro
- 30,615
- 24
- 120
- 162
16
votes
3 answers
How to access $GIT_COMMIT in Jenkins declarative pipeline's post phase and emailext?
I want to send email when builds succeeds/fails along with some useful Git info such as commit SHA, previous successful SHA, commit message, etc.
I was able to do this in the old UI way but now I've created declarative pipeline and now I'm getting…

Genki
- 3,055
- 2
- 29
- 42
6
votes
2 answers
Jenkins email-ext plugin Send email to a group
Is there a way you can send an email to a distribution list? This is not working as only the individual email addresses are working fine. Is there any setting that i am missing?

varun7447
- 574
- 1
- 6
- 27
5
votes
4 answers
Embed image in email body in Jenkins pipeline
I need to add an image in email as email body not as attachment, from Jenkins via pipeline.
I am using emailext plugin in Jenkins pipeline, below is the code I am using.
emailext (
subject: "test email",
body: """
…

anudeep
- 415
- 6
- 19
5
votes
2 answers
Jenkins send email notification only if last N builds have failed (not per run) - Editable Email Notification
Jenkins 1.6 - 2.x
I have a job which runs every minute or 2 and sometimes the build fails and the next builds passes. For build failures, I'm using Editable Email Notification plugin in Jenkins.
Either using this plugin or any other plugin/way, can…

AKS
- 16,482
- 43
- 166
- 258
5
votes
1 answer
How to invoke email-ext plugin from Jenkins declarative script?
I am writing a simple Jenkins declarative script to run 'make' and send an email with the result (success/failure).
I can send a simple email using:
post {
success {
mail to:"myname@me.com", subject:"${currentBuild.fullDisplayName} -…

DavidA
- 2,053
- 6
- 30
- 54
5
votes
1 answer
Access custom environment variables in jelly template
With Jenkins pipeline you are able to set any environment variable through Global Variable called - env.
Jelly template in it's turn gives you ability to access Jenkins API including hudson.model.AbstractBuild and hudson.model.AbstractProject…

sshepel
- 880
- 1
- 9
- 16
5
votes
1 answer
Send notification e-mail to upstream committer in Jenkins pipeline
Since Jenkins builds all of our projects automatically after we push to GitHub, we would like Jenkins to send out e-mail notifications if the build was successful or not at the end of the build pipline.
I created a shared library with the following…

fgk
- 55
- 1
- 5
4
votes
0 answers
Jenkinsfile: Send mail to all users listed in "People"
I would like to send an e-mail notification to all users listed in the People tab in the job view:
The post Use Jenkins 'Mailer' inside pipeline workflow shows how to send e-mail notifications within a Jenkinsfile:
emailext(body:…

RoBeaToZ
- 1,113
- 10
- 18
4
votes
2 answers
Using Jenkins email-ext plugin with pipeline
I am running from my pipeline a snippet to send html mail from HTML file. it looks like that:
emailext(to: "${BUILD_USER_EMAIL}", mimeType: 'text/html', subject: "dummy subject", body: readFile 'pipeline/mail/summary.html');
My question: How can I…

Nir Koren
- 241
- 4
- 11
3
votes
1 answer
Jenkins Email Extension plugin and OAuth 2.0 Query
I am using the Email Extension plugin in my Jenkins and sending e-mail notifications.
I am using my SMTP server with TLS enabled and need to authenticate the SMTP server via username and password to leverage services.
SMTP configuration…

Sandeep
- 31
- 1
3
votes
3 answers
Jenkins: Trigger types explanation for Editable Email Notification
In Jenkins for Editable Email Notification, to create a Trigger:
The following items/options:
Question
Is there an official documentation explaining each item shown in the select box? - Of course, some are obvious, others no
Jira
Just in case I…

Manuel Jordan
- 15,253
- 21
- 95
- 158
3
votes
4 answers
Access variable in email ext template using Jenkins pipeline
I am trying to attach the template file using Jenkins pipeline, emailext.
Variable (PROJNAME) is not accessible in the template file and I am receiving exceptions as an email:
Exception raised during template rendering: No such property: env for…

helloworld9
- 173
- 2
- 2
- 8
3
votes
0 answers
Highlight specific lines in Jenkins Email-Notification using Pre-send Script
I would like to highlight few lines in Jenkins email-notifications using Pre-send script. I am new to Jenkins but so far I have created job which sends me email-notification with text from log file as email body.
I would like to use regex for…

shrishinde
- 3,219
- 1
- 20
- 31
3
votes
2 answers
Where does jenkins get email addresses from in Git
I have the latest version of Jenkins set up, along with the email extension plugin. Email is scheduled to be sent whenever a build fails to all the relevant patch authors.
The issue I am seeing is that the email being sent out is to email addresses…

Roger Hill
- 3,677
- 1
- 34
- 38