Introduction
Sometimes Jenkins runs scripts that need special permission to keep your system safe. Script approval and sandbox help control which scripts can run automatically and which need manual approval.
When you add a new Groovy script to a Jenkins pipeline and it uses commands Jenkins does not trust by default
When you want to prevent unsafe scripts from running automatically in your Jenkins jobs
When you want to allow safe scripts to run without manual approval by using the sandbox mode
When you need to approve specific scripts or script signatures manually to allow them to run
When you want to keep your Jenkins environment secure while still allowing custom automation