Placing scriptler scripts (with the appropriate META header) in the JENKINS_HOME/scriptler/scripts folder allows their autodiscovery and loading once the server is re-started.
However, these scripts are still not usable for builds until the permission is set to 'Allow execution by user with RunScript permission' Is there any way that this permission can be set programmatically?
In my use case, I want to assist users not very familiar with Jenkins to mirror a working instance of Jenkins with jobs that depend on Groovy scriptlets. Job configuration and scripts will be chekced out from SCM but it would be useful if the script permissions can be set through a simple installation script.
Thanks for your feedback
Ioannis