0
0
Jenkinsdevops~5 mins

Credentials plugin for secrets in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the Jenkins Credentials plugin?
The Jenkins Credentials plugin securely stores and manages secrets like passwords, tokens, and keys used in Jenkins jobs and pipelines.
Click to reveal answer
beginner
Name two types of credentials you can store using the Jenkins Credentials plugin.
You can store Username/Password pairs and Secret Text (like API tokens) among other types such as SSH keys and certificates.
Click to reveal answer
intermediate
How do you reference stored credentials in a Jenkins Pipeline script?
Use the withCredentials step with the credential ID inside the pipeline to access the secret securely.
Click to reveal answer
beginner
Why should you avoid hardcoding secrets directly in Jenkins job configurations?
Hardcoding secrets risks exposing sensitive data in logs or job configs. Using the Credentials plugin keeps secrets encrypted and secure.
Click to reveal answer
intermediate
What is the difference between 'Global' and 'Folder' scoped credentials in Jenkins?
Global credentials are available to all jobs, while Folder scoped credentials are only accessible to jobs inside that folder, improving security by limiting access.
Click to reveal answer
Which Jenkins plugin is used to securely store secrets like passwords and tokens?
ADocker plugin
BCredentials plugin
CPipeline plugin
DGit plugin
How do you access a stored secret in a Jenkins Pipeline script?
AUsing the 'env.SECRET' environment variable automatically
BBy hardcoding the secret in the script
CBy storing the secret in a text file
DUsing the withCredentials step with the credential ID
What type of credential can you NOT store with the Jenkins Credentials plugin?
ADocker images
BSecret text like API tokens
CSSH private keys
DUsername and password
Why is it better to use the Credentials plugin instead of hardcoding secrets?
AIt makes the job run faster
BIt automatically updates secrets
CIt encrypts secrets and limits exposure
DIt stores secrets in plain text
What does 'Folder scoped' credentials mean in Jenkins?
ACredentials available only to jobs in that folder
BCredentials available to all Jenkins jobs
CCredentials stored outside Jenkins
DCredentials that expire after one use
Explain how the Jenkins Credentials plugin helps keep secrets safe in your CI/CD pipelines.
Think about how secrets are stored and accessed without exposing them.
You got /5 concepts.
    Describe the steps to use a stored secret in a Jenkins Pipeline script.
    Focus on how the pipeline accesses the secret securely.
    You got /4 concepts.