tabeyti / jenkins-jack

Jack into your Jenkins to execute Pipeline scripts, provide Pipeline step autocompletions, pull Shared Library step documenation, run console groovy scripts across multiple nodes, and more! Honestly, not that much more.
Other
97 stars 32 forks source link

script not yet approved for use #14

Closed SVilgelm closed 4 years ago

SVilgelm commented 4 years ago

Hi, I'm trying to execute a pipeline, but got this error:

org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use
    at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.using(ScriptApproval.java:474)
    at org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition.create(CpsFlowDefinition.java:120)
    at org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition.create(CpsFlowDefinition.java:67)
    at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:299)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)

What script should be approved?

SVilgelm commented 4 years ago

The problem in the scriptsecurity plugin.

DDD0311 commented 1 year ago

what was thefix for this one?

SVilgelm commented 1 year ago

sorry, I don't remember :)

Aspirelus commented 9 months ago

For anyone that had this issues this is the solution I came up with : Go to JenkinsGUI -> Manage Jenkins -> In-process Script Approval -> Approve your script to run