Interview Prep/CI/CD/Jenkins Pipelines and Agents

Security wants a record of who triggered each build and who approved each production deploy.

IntermediateScenarioJenkins Pipelines and Agents
Answer

Situation read → Auditability.

What I'd do →

  1. Enable the Audit Trail plugin and ship logs to a SIEM.
  2. Capture input approver via def who = input(message: '...', submitter: '...', submitterParameter: 'APPROVER').
  3. Record build cause (currentBuild.getBuildCauses()), commit SHA and approver in build description and in the deployment ticket/annotation.
  4. Use SSO (OIDC/SAML) so identities are real people.

Why → Auditors need a traceable chain: commit, build, approver, deploy.

Interview tip → Tie it to change-management: the pipeline is the change record.

All CI/CD questions

More on Jenkins Pipelines and Agents