Interview Prep/CI/CD/Jenkins Shared Libraries, Credentials and Security

A contractor needs to view build results but must not see any credentials or console secrets.

BeginnerScenarioJenkins Shared Libraries, Credentials and Security
Answer

Situation read → Read-only access with minimal exposure.

What I'd do →

  1. Grant only Overall/Read and Job/Read on the relevant folder; do not grant Credentials/View or Job/Configure.
  2. Disable "Job/Workspace" if workspaces may contain secrets.
  3. Rely on masking but also keep secrets out of outputs.

Why → Console output and workspaces are common leak points.

Interview tip → Permission granularity in the matrix is what makes this possible.

All CI/CD questions

More on Jenkins Shared Libraries, Credentials and Security