Jenkins: no email to recipients (integration with GitLab) - jenkins

I'm using Jenkins (with Email Extension plugin ... ), integrated with GitLab.
For my job in my post build actions configuration, I see this (note that the recipients list is empty ...)
When the job fails I see this in the console output
15:29:50 New run name is '#25'
15:29:51 Sending e-mails to: name1.surname1#mydomain.com name2.surname2#mydomain.com
name3.surname3#mydomain.com
and emails are sent.
Where are these names found/are coming?
Any suggestion will be appreciated.

Your E-mail Notification is configured with the Send separate e-mails to individuals who broke the build option enabled. This makes the Mailer Plugin send a notification to each e-mail address involved in committing Changes for the build in case the build failed.
Changes and their authors are shown at each job page.
For example, there are 4 Git commits from 4 different authors (identified by email). Those commits gets pushed to the Git server and Jenkins job gets started. The job picks all those new commits and fails. The plugin then picks all distinct emails from the commits and sends an email to each commit author assuming at least one of them broke the build.

Related

How to combine multiple build started Jenkins messages into one email

I am using Jenkins, Gerrit and repo for my project. Often times I make code changes that span across git repositories (all managed through repo). When I submit a CL it triggers multiple Jenkins jobs (pre-submits, cross reference checks, linters...) which sends flurry of build started emails and finally one email with +/-verified status. Wondering if it is possible to combine all the build started emails into one (just like the final verified status email)
I would suggest you to use Pipeline where only one job will be triggered as part of Gerrit trigger and the Pipeline will take care of calling all other jobs and update the Gerrit with the final message.

Jenkins Pipeline: Send perforce changes per Email

I'd like to know how I can send Sourcecode-Changes between two jenkins-pipeline builds can be sned per Email durring the build. The last step of the build already send an email with informations for developers for deployed artifacts. I would like to send the perforce changelist-description (maybe also user wh made the change(s) and date/time of the change(s)) within this email. We using Jenkins ver. 2.52 and pipeline-script from SCM as build-type.
Thanks for your help

Is there a way to inform users about a change in Stash repository?

I would like to know if it is possible to send an e-mail notification to certain users when there is a modification to a particular directory within a repository in Stash. I know it is possible to write a shell script within Jenkins project to do this and then inform through e-mail but I would like to know if there is a native option within Jenkins configuration to this action.
This is possible within BitBucket Server itself as of May 7, 2013:
Repository subscriptions
[...] At times, you may want to receive emails on specific types of messages you care most about including:
...
Commits – when a new commit is added or a comment is left
...
See also Manage Inbox and email notifications.
You can use Poll SCM under Build Triggers section.
Define a job that uses GIT plugin, specify a workspace and machine so it'll always be synced with the latest, and poll every 2 minutes. if there is a change in the repository the job will be triggered. Add a post build action to send emails using the built in email notification or using Email-ext plugin.
Don't forget to edit the SMTP information under Manage Jenkins->Configure.
You can check Here for more information about Jenkins Polling.

Jenkins Email-ext plugin not sending notification when new branch fails for first time

Steps to reproduce my problem:
Using GIT for SCM and Jenkins is set up to trigger build on SCM change
Master branch is building fine and all tests are passing
Create new branch from master
Break something so build fails and push to the new branch
Build is triggered in Jenkins by SCM change
Expected result is that email-ext plugin sends notification of build failure to the person who first pushed to the new branch.
But actually no e-mail is sent and the log says:
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE
The "Failure - Any" trigger has both Developers and Culprits set under "Send To".
When a second commit is made to the new branch by the same person, the trigger works fine - it finds the e-mail address of the culprit and sends the e-mail.
Using Email-ext version 2.38.1, Jenkins 1.575.
The triggers I have configured:
Screenshot from the first failing build after creating a new branch is below. (Branch is immediately broken)
I think the problem might be that it says "No changes", although it is triggered by a SCM change.
If it is changed with a second commit, it will show that commit under "Changes" and then it knows who to send the e-mail to.
Any way to get the plugin to send an e-mail to the one who creates the broken branch? Thank you.

Jenkins email-ext trigger e-mail for culprits not working as expected

I'm trying to send e-mail to culprits when the build fails. If I start the build manually the e-mail is sent, but If I start the build through SCM polling e-mail is not send and the console output for the build shows the message:
An attempt to send an e-mail to empty list of recipients, ignored.
Is that the right way the plugin should work (culprit should be a person, not scm polling)?
Im using:
OS: Ubuntu Server 11.04
Jekins: 1.532.1
Email-ext plugin: 2.37.2
Currently (before the next release 2.38) when you want to send emails to the culprits you also need to check the "Developers" checkbox. Without it, the culprits portion will not be used at all.
This will be different going forward, adding Culprits as a recipient list will do what is expected.

Resources