You need pipeline-level approval workflows with multiple stages (QA, security, release manager). Design it in Jenkins.
AdvancedScenarioJenkins Shared Libraries, Credentials and Security
Answer
Situation read → Multi-party gated release.
What I'd do →
- Use sequential
inputstages withsubmitterset per role andsubmitterParameterto log who approved. - Keep
agent nonewhile waiting and add timeouts with an auto-abort. - Post each decision to the ticketing system (Jira API) and annotate the deployment in monitoring.
- Require the artifact digest to be identical across gates; re-verify the signature before the final deploy.
Why → Gates tie human approval to an immutable artifact, giving auditability.
Interview tip → Mention that approvals on the artifact digest prevent "approved A, shipped B".
More on Jenkins Shared Libraries, Credentials and Security
Ten teams copy the same 80-line "build and push image" stage. What do you do?BeginnerA shared library change broke 50 pipelines at once. How do you prevent a repeat?AdvancedA pipeline needs an AWS secret key and a DB password. How do you provide them without exposing them in logs?BeginnerCredentials are stored in Jenkins; the security team wants no long-lived cloud keys at all.AdvancedA developer asks for admin access to Jenkins to "fix their job". How do you handle it?BeginnerA pipeline from a fork PR should not be able to read production credentials.Intermediate