Questions tagged [email-ext]

Email-ext is a Jenkins plugin, it allows you to configure every aspect of email notifications. You can customize when an email is sent, who should receive it, and what the email says.

Email-ext is a Jenkins plugin, it allows you to configure every aspect of email notifications. You can customize when an email is sent, who should receive it, and what the email says.

218 questions
2
votes
1 answer

Jenkins: Passing user defined variables to Email-Ext plugin

I'm using the Email-Ext plugin to send a results email at the end of my build in the post build stage of a declarative pipeline. In the body of the email I'm trying to insert some environment variables and some user defined environment variables. …
2
votes
1 answer

how to reference the Default Recipients set in Jenkins UI

I'm using jenkins emailext plugin, in the Jenkins global configuration UI, under Extended E-mail Notification section, I can set Default Recipients to be a list of recipients. My question is, inside my Jenkinsfile, when I use emailext() step, how…
zanyman
  • 667
  • 2
  • 11
  • 22
2
votes
1 answer

Jenkins emailext multiple attachment

I am having trouble attaching more than one attachment. These attachments are in different formats. I already tried separating the the attachment patterns with a space too. emailext( attachLog: true, body: "xxxxxxxxxxxxxx", attachmentsPattern:…
Kyle Kim
  • 41
  • 1
  • 1
  • 3
2
votes
1 answer

Send Jenkins error log in email (can't extract the error part of log)

I need to extract the part of the jenkins log that contains just the error description and stack trace so that I can send it in an email (which I do using the jenkins email ext plugin in the pipeline). For e.g., in the following log snippet, I…
HS10
  • 21
  • 1
  • 3
2
votes
1 answer

How to access to the post build artifact in pre-send script for editable email notification?

I'm trying to access an archived post build artifact, extract, reformat the data and send it out in an editable email notification. However, I'm struggling to find a way to access the artifact in the pre-send script. Any suggestions on what I can…
Andrew
  • 21
  • 2
2
votes
1 answer

Passing git changes to a file for use in later Jenkins jobs

ENVIRONMENT I have a series of jobs in Jenkins where Job #1 is an initial build and job #n is deployment to production. Only the first few jobs are connected, and all jobs are parameterized. I only build the one time, and if that build is successful…
Chris Giddings
  • 697
  • 2
  • 7
  • 20
2
votes
1 answer

Can I abort email-messages or take a different action when Git commands fail

I have a Jenkins job with: Git SCM which refreshes a local workspace. A shell script which also runs some Git CLI commands to make some assertions, and build a dynamic recipients.txt file for ext-email to send-to. Email Ext to send messages, which…
javabrett
  • 7,020
  • 4
  • 51
  • 73
2
votes
1 answer

how to send an email to the upstream recipient list in jenkins?

I would like to know how can I sent an email from a downstream build to the upstream recipient list? There is an option to sent the email to the upstream git committers but its not what i want to achieve.
daniel
  • 174
  • 2
  • 10
2
votes
3 answers

Groovy script to cancel sending the email in Email-Ext plugin

In Jenkins, I need a groovy script to cancel sending email in Email-Ext plugin by below condition. If status.html file is not available in Jenkins workspace, then I need to cancel sending email.
2
votes
1 answer

How to send an email to requester only if the build is triggered manually?

I would like to configure a project in Jenkins to send emails to the recipients group for regular scheduled builds, but only to the requester in case the build is triggered manually. Is this possible?
user3124206
  • 375
  • 1
  • 7
  • 16
2
votes
1 answer

Sending bcc email recipient in Jenkins using email-ext plugin

I am using the email-ext plugin in Jenkins to send email messages upon build completion in Jenkins. I want to include certain email addresses as bcc and am using the following convention when specifying email…
ashah
  • 193
  • 1
  • 4
  • 15
2
votes
1 answer

How to send email notifications for the same Jenkins job in one email thread

I am using Jenkins Email-ext plugin to send email notifications when the job starts and in the end (if the job succeeded). And I want those notifications to be part of one email thread (not separate emails with the same subject). I looked through…
Iryna
  • 161
  • 1
  • 5
2
votes
1 answer

Jenkins email-ext Pre-send groovy script is resuting in attachement

I entered this simple line in Pre-Send Script: msg.setContent("Hi there!" , "html/text"); When I receive the email, the body is empty and there is a file attached which contains Hi there!. What do I need to do for this to come out in the body of…
jbemt48
  • 409
  • 2
  • 7
  • 13
2
votes
3 answers

Jenkins email notification for build failure due to compile error

I have continuous integration setup using jenkins and also integrated selenium scripts for nightly build. I also have editable email notification for sending emails in case of any build failure. The default content for editable email notification…
Jugi
  • 1,244
  • 3
  • 23
  • 51
2
votes
0 answers

Sending email to git culprits or committer who broke the build with ext-email plugin

I have jenkins setup where POST HOOKS trigger a SCM polling job and the polling job triggers build flow job and build flow job calls various other jobs. The git plugin mentions that we can use GIT_COMMITTER_EMAIL and GIT_AUTHOR_EMAIL environment…