Interview Prep/CI/CD/Jenkins in Production

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.

All CI/CD questions

More on Jenkins in Production