is their any way to change Project recipient list using api ?

38 views
Skip to first unread message

Thethorongil

unread,
Jul 8, 2016, 3:52:40 AM7/8/16
to Jenkins Users
I have 5 environment of Jenkins with more than 100 build jobs in each of them . I want to change all the email in project recipient list in post build   action . I don't want to do them manually , how can i automate this to replace all the previous users with my current list of users?
Is this can be done via using API?

Baptiste Mathus

unread,
Jul 9, 2016, 11:48:01 AM7/9/16
to jenkins...@googlegroups.com
You could either for example use a system groovy script to do that (possible starting point: https://wiki.jenkins-ci.org/display/JENKINS/Display+mail+notifications+recipients) or use Job DSL plugin to version your jobs and simply handle those as variables.

Cheers

2016-07-08 9:52 GMT+02:00 Thethorongil <sinha...@gmail.com>:
I have 5 environment of Jenkins with more than 100 build jobs in each of them . I want to change all the email in project recipient list in post build   action . I don't want to do them manually , how can i automate this to replace all the previous users with my current list of users?
Is this can be done via using API?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ea0b1896-0116-4c9b-9a60-fde79188a60e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Harry G.

unread,
Jul 11, 2016, 6:17:17 AM7/11/16
to Jenkins Users
Mid-term you could also consider moving to email-ext plugin.
There you can set a default recipient list centrally or even set receivers dynamically with a pre-send script in the job.
Reply all
Reply to author
Forward
0 new messages