Script not showing in script approve console

It is security enabled jenkins, i am using dsl script for creating job, 

Processing DSL script master_itself.groovy
ERROR: script not yet approved for use
Finished: FAILURE

i am getting above statements while build the job, but this scripts
are not showing in script approval console for approving, some times it is showing,
is there any pattern for getting approval

1 comment

  • 0
    Ryan Campbell


    I'm not really finding anything. I know that if you have `catch (Exception)` blocks then this can prevent the RejectedAccessException from being detected and fed to the Script Security Console correctly.

    I guess you've seen these docs: https://github.com/jenkinsci/job-dsl-plugin/wiki/Script-Security



Please sign in to leave a comment.