Some jobs push to QA and some jobs push to Production.
Only devs should be allowed to push to QA and only QA should be allowed to push to production. Aside from making two separate build servers (with some way to share artifacts) how do I restrict permissions?
Set the "Restrict where this job can be run" check box in your job configuration and specify the name of your slave. If you add more slaves later, you can set labels for each slave and specify those in your job configs. See this reference documentation: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds.
Enable Role-Based Strategy on JenkinsStep 1: After Plugin installation, go to the 'Manage Jenkins' and then click on 'Configure Global Security'. Check on Enable security option. Step 2: On the Security Realm section, select 'jenkins' own user database'. On Authorization section, select 'Role-Based Strategy'.
You need Project-based Matrix Authorization Strategy in Global Configuration, and on the Job Configuration, use Enable Project-based Security.
It's all explained here
Standard Security Explained
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With