Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13468

Would like to create/use a central "catalog" . . .

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • scriptler-plugin
    • 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.

          [JENKINS-13468] Would like to create/use a central "catalog" . . .

          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...

          Dominik Bartholdi added a comment - 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...

          Frank Merrow added a comment -

          This issue finally bubbled up back into view . . .

          I've tried it and the "scripts" directory will do nicely, thank you . . . on a couple of our Jenkins, Jenkins got installed in C:\Program File (x86) which causes some access issues if the user is not running CMD.EXE as Admin . . . but other than that minor annoyance, this solution is very usable for my situation.

          THANK YOU.

          Frank

          Frank Merrow added a comment - This issue finally bubbled up back into view . . . I've tried it and the "scripts" directory will do nicely, thank you . . . on a couple of our Jenkins, Jenkins got installed in C:\Program File (x86) which causes some access issues if the user is not running CMD.EXE as Admin . . . but other than that minor annoyance, this solution is very usable for my situation. THANK YOU. Frank

          I was thinking about these two feature requests (JENKINS-13468 JENKINS-15276) and I think we can combine these with the new git-server plugin functionality kohsuke just introduced: https://wiki.jenkins-ci.org/display/JENKINS/Git+Server+Plugin

          Dominik Bartholdi added a comment - I was thinking about these two feature requests ( JENKINS-13468 JENKINS-15276 ) and I think we can combine these with the new git-server plugin functionality kohsuke just introduced: https://wiki.jenkins-ci.org/display/JENKINS/Git+Server+Plugin

          implemented in 2.5

          Dominik Bartholdi added a comment - implemented in 2.5

            domi Dominik Bartholdi
            fmerrow Frank Merrow
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: