Recall & Review
beginner
What is the purpose of script approval in Jenkins?
Script approval in Jenkins ensures that only safe and trusted scripts run in the system, protecting it from harmful or untrusted code.
Click to reveal answer
beginner
What is the Jenkins sandbox for scripts?
The Jenkins sandbox is a safe environment where scripts run with limited permissions to prevent harmful actions on the system.
Click to reveal answer
intermediate
How does Jenkins handle a script that is not approved?
Jenkins blocks the execution of unapproved scripts and requires an administrator to review and approve them before they can run.
Click to reveal answer
beginner
Where can you find the list of scripts waiting for approval in Jenkins?
In Jenkins, the list of scripts waiting for approval is found under 'Manage Jenkins' > 'In-process Script Approval'.
Click to reveal answer
intermediate
Why is it important to use script approval and sandbox in Jenkins pipelines?
Using script approval and sandbox protects the Jenkins server from running unsafe scripts that could damage the system or leak sensitive data.
Click to reveal answer
What happens if a Jenkins pipeline script uses a method not yet approved?
✗ Incorrect
Jenkins blocks scripts using unapproved methods until an administrator approves them.
Where do you approve scripts in Jenkins?
✗ Incorrect
Script approvals are managed under 'Manage Jenkins' > 'In-process Script Approval'.
What is the Jenkins sandbox designed to do?
✗ Incorrect
The sandbox restricts script permissions to protect the system.
Who can approve scripts in Jenkins?
✗ Incorrect
Only Jenkins administrators have permission to approve scripts.
Why should you avoid disabling the Jenkins sandbox?
✗ Incorrect
Disabling the sandbox removes safety checks and risks system security.
Explain how Jenkins script approval and sandbox work together to keep your system safe.
Think about how Jenkins controls what scripts can do and who decides.
You got /4 concepts.
Describe the steps to approve a new script method in Jenkins.
Consider what happens from running the script to approval.
You got /5 concepts.