seed job asks for script approval in jenkins

ricky picture ricky · Apr 29, 2017 · Viewed 31k times · Source

I was trying to execute a seed job(having github url with groovy scripts) in jenkins and got following error.

First time build. Skipping changelog.
Processing DSL script APIServerDeployer.groovy
ERROR: script not yet approved for use
Finished: FAILURE

Answer

Erwin Alberto picture Erwin Alberto · Aug 19, 2017

In order to get past this Jenkins security feature, you will need to approve your script. Go to Manage Jenkins -> In-process Script Approval. In that screen, you will see the script that you are trying to execute. There should be an approve button that you'll need to click to approve that script.

enter image description here