I\'m running Jenkins in a local trusted environment where I\'m trying to run this pipeline. This Jenkinsfile is checked into git.
#!groovy
node(\'master\')
You can solve the problem by following steps:
Use Groovy Sandbox
is checked. This can be done in the configuration of the job.permissive-script-security.enabled
command line parameter to Jenkins master with value:true
if you want to disable the need to approve scripts, but potentially dangerous signatures will be logged:
-Dpermissive-script-security.enabled=true
no_security
if you want to disable the need to approve scripts and disable also logging of the potentially dangerous signatures:
-Dpermissive-script-security.enabled=no_security