-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
Windows . . .
We have a large and growing number of Jenkins instances . . . We don't have many Groovy script, but rather than carrying them around by hand, it would be nice to be able to put them in once place (network share for instance) and access them from any Jenkins.
Note this isn't exactly like your public repositories, because I don't want to have to import them . . . while certain scripts might be local to a given Jenkins, for the global Jenkins script . . . if they are changed in one Jenkins, I would like that update to appear for all Jenkins attached to the repository.
- is related to
-
JENKINS-15276 Store Groovy Scripts into a local VCS
-
- Resolved
-
That sounds like a good idea and actually the current implementation does already allow you to do something in the same direction...
The directory at '<JENKINS_HOME>/scriptler/scripts' gets synchronized at every startup of Jenkins and automatically imports every *.groovy file. I agree, this is not perfect yet, but It might help you to get started.
Based on that functionality I could think of a second (userdefined) directory where you could just dump new scripts and we could add some functionality/button to trigger the sync - instead of having to restart Jenkins.
I'll think about it a bit more, but I'm sure we can do something useful here...