How do you restrict who can run production deploy jobs in Jenkins?
IntermediateProductionJenkins in Production
Answer
Put production jobs in a folder with Role-Based permissions allowing Build only for the release group. Use input with submitter for approvals, require a different person than the committer (verify in code using currentBuild.getBuildCauses() and the commit author), and route production deploys to a dedicated agent label with network access to production. Log every run to an audit sink.
More on Jenkins in Production
How do you run Jenkins for high availability and scale?AdvancedHow do you tune the Jenkins controller JVM and avoid out-of-memory crashes?AdvancedHow do you back up and restore Jenkins?IntermediateHow do you upgrade Jenkins and its plugins safely?IntermediateHow do you harden a Jenkins controller?AdvancedHow do you configure dynamic Kubernetes agents in Jenkins for production use?Intermediate