We have a Jenkins setup in which jobs are pipelines that call the email-ext plugin to notify users.
After the jobs have been setup, all users have changed emails, going from user#company1.com to user#company2.com.
Jenkins still sends emails to the former adresses.
I can't find a way to update the email adresses. Is there a way to do this ?
Users are authenticated through the Active Directory plugin.
You just have to update to address while sending. Check this on how to do it. Since you might need to update the config on multiple jobs you might need to write a script to achieve that. This thread explains it
Related
When someone creates a Test job, we should send email only to him, not for all. How can I get a job owner name?
We have teams and when we make a job, the results of it we send to them. But if the name of the job consists "TestJob" we should send only to the creator.
Check out the Build User Vars Plugin
It will give you the executing users name and email address.
We have a CI jenkins platform and we want to manage our deployments with an email confirmation. A user send a request to the deployment plan for starting. But in the first step, the plan send an email confirmation to an administrator. If the admin click the request link, deployment will be start, otherwise wont start.
Is there a way to do this with jenkins or any jenkins plugin?
yes there is a way to do that, honestly, more than one way to do that and you can choose by your preferneces. What I will suggest you is to consider the way explained in the issues of Jenkins https://issues.jenkins-ci.org/browse/JENKINS-33793
though it have status Unresolved, but it looks like by my knowledge that it will work even right now , cause it is just an URL.
I've been reading a few articles and watching a few videos on Jenkins. I'm wondering how easy it would be once the master branch has been deployed to a staging server to automatically send an email to the client notifying them of the url to the staging server and also giving them a link to "deploy live". This way the client can see the changes, make sure they're happy with it then deploy it themselves without having to email anyone requesting it to go live.
Anyone got any idea how easy this would be to do with Jenkins? There may be a plugin that does this but so far I've not come across anything.
I saw a talk where a guy does this to notify QA of a new build to test, as well as notify when a build is ready to be published to production.
Basically the last automated job (deploy to staging job) has a post build step to send an email to some address. The body of the email contains a link back to the REST API for the "deploy to production" job, triggering a build.
Email recipient tests things, and if satisfied, clicks the link and Jenkins runs the production job. Obviously this requires that the recipient has some kind of access to (at the very least, the REST API of) the Jenkins instance. That being said, there's no reason you couldn't set up your own system to take limited external requests and forward them to your Jenkins API.
The video link (including time reference of the relevant part) is: https://youtu.be/3HI7mv_791k?t=3169
If you've been watching a few videos you might have already come across it, but it's quite long so you might not have watched it all.
I am using Jenkins email-ext plugin to send email messages. I would like to send 2 email messages - one with 1 attachment that is sent to 1 person and a second email with another attachment sent to another person.
Is that possible using this plugin? From what I have found in the documentation it seems that only one email can be sent.
Thanks in advance.
You could modify your process to use three Jenkins jobs; one for the build, and two for emailing.
Use the Jenkins Parameterized Trigger Plugin to have the build job start the email jobs when it's done. You can either pass in the location to the zip files or some other parameter to know what zip file to use in the email jobs. In "Projects to build" you put the name of your email job. You will add two triggers; one for each email job, passing in unique parameters to each.
If you setup multiple triggers, multiple emails will be sent out. You can have multiple triggers of the same type as well, so if you want to send out two emails for failure, just add the failure trigger twice and setup different recipient lists. Each trigger can generate a separate email.
We have LDAP login setup for user login and execute jobs. how to monitor users activities for the jobs that a particular user executed.
So far the only way I have seen is to go each job's console output and look for "Started by user". Is there any other way I can list all users with the jobs they executed?
Thanks
you can use this plugin https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin,
and adopt your build configuration.