Warning: this build has no associated authentication

160 views
Skip to first unread message

Eric Naitove

unread,
Dec 10, 2015, 10:31:52 AM12/10/15
to Jenkins Users
I have brought up a new Jenkins server.  ALL my jobs are from 1.555

Is there a way to GLOBALLY change ALL JOBS to "Run as User who Triggered Build" in Access Control for Builds all jobs or somewho bypass, configure, etc..

I have 1000+ jobs.

Victor Martinez

unread,
Dec 10, 2015, 11:16:53 AM12/10/15
to Jenkins Users
You can 'easily' modify your jobs via groovy Jenkins api and inject the job property, in order to do that you will need to look at the source code of that particular plugin:

https://github.com/jenkinsci/authorize-project-plugin/blob/master/src/main/java/org/jenkinsci/plugins/authorizeproject/AuthorizeProjectProperty.java

Might help you

If you need further details you can have a look at the scriptler and groovy post build plugins, there are a bunch of examples

I hope it helps

Cheers

Khai Do

unread,
Dec 11, 2015, 6:01:10 PM12/11/15
to Jenkins Users
another option to batch modify tons of jobs is to use the jenkins-job-builder (http://docs.openstack.org/infra/jenkins-job-builder/index.html).  tons of examples in the doc as well. 
Reply all
Reply to author
Forward
0 new messages