Permission in Scriptlet scripts-Can they be scripted?

23 views
Skip to first unread message

Ioannis Moutsatsos

unread,
Aug 22, 2016, 9:51:37 AM8/22/16
to Jenkins Users
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 

Daniel Beck

unread,
Aug 22, 2016, 10:21:34 AM8/22/16
to jenkins...@googlegroups.com
Not an answer, but be very careful who you grant that permission to -- while it may not look that way, Run Scripts is the most powerful individual permission in the system, more than Administer (although implied by it for historical reasons).
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4302502e-31bd-4caa-ad58-3cb004dd430c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages