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.
Related
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
I have a promotion Job A which on successful build triggers email to certain recipients with Jenkins console link and build#. When the user clicks on the link from the email, he will login through his user id and clicks on approve, upon which Job B in the pipeline triggers. Now I want to achieve this for multiple approvers, meaning if Job A sent email to 3 users, Job B should not be triggered until all approvers approve. Seems like their is no option in promoted build plugin for the same. Any ideas, suggestions would be helpful.
May be this plugin can help you with the approvals.
Build Pipeline
This plugin provides a Build Pipeline View of upstream and downstream connected jobs that typically form a build pipeline. In addition, it offers the ability to define manual triggers for jobs that require intervention prior to execution, e.g. an approval process outside of Jenkins
I am developing a Dashboard on top of Jenkins. The Dashboard would list all the jobs available and would also have a trigger button to initiate a build which shoots a post request using the secret token. The problem is every build would have the same cause which says "Started by remote host 19.XX.XX.XX". Since the dashboard needs to display the user name triggering the job as the person who logged, is there a way we can pass the a username as well in the jenkins remote trigger url like below so that jenkins would capture the cause as the user name.
https://jenkinsurl:port/job/testLDAP/build?token=DDJjk$###*bB&userName=abc
There is no parameter that you can use for this. A workaround that I've used is adding &cause=This+was+started+by+abc which results in
Started by remote host 192.168.x.x with note: This was started by abc
Perhaps this might help you.
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.