- You have a message saying “A Jenkins administrator will need to approve this script before it can be used.”
- Template plugin
Unlike on a classical/on premise Jenkins instance, DEV@cloud administrators don’t have all privileges. For security reasons, you can’t run arbitrary script because your account don’t have Overall / RunScripts permission.
To overcome this limitation, it is recommended to use the Groovy sandbox (there’s a checkbox in the template UI to use the sandbox). The Groovy sandbox is a special system allowing untrusted Groovy code to run on Jenkins. The accessible Jenkins API in the script are limited, but are usually more than enough.
If you need a non accessible API, you can open a support ticket us and we will allow it in the sandbox after review.
You can find here a documentation explaining the rational behind sandboxing.