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?
✗ Incorrect
The Credentials plugin is designed to securely store and manage secrets in Jenkins.
How do you access a stored secret in a Jenkins Pipeline script?
✗ Incorrect
The withCredentials step securely fetches the secret by its ID in pipeline scripts.
What type of credential can you NOT store with the Jenkins Credentials plugin?
✗ Incorrect
Docker images are not credentials; the plugin stores secrets like passwords and keys.
Why is it better to use the Credentials plugin instead of hardcoding secrets?
✗ Incorrect
The plugin encrypts secrets and keeps them secure, avoiding exposure in logs or configs.
What does 'Folder scoped' credentials mean in Jenkins?
✗ Incorrect
Folder scoped credentials restrict access to jobs inside that folder, improving security.
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.