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

Add an ability to specify external GIT repository for scripts

    XMLWordPrintable

Details

    Description

      It would be sensible to add an ability to specify an external scripts GIT repo, not only GitHub one.
      We have a big collection of scripts, could not be shared either to everybody from open space or from organization. We have our own Gerrit, where these scripts are stored. It would be a great feature for us to be able to specify this repo as a source of scripts.

      Attachments

        Activity

          just to be clear, you would like to have an inhouse catalog (1) - a list of scripts that can be imported into individual jenkins instances via scriptler?

          (1) https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin#ScriptlerPlugin-Catalogs

          imod Dominik Bartholdi added a comment - just to be clear, you would like to have an inhouse catalog (1) - a list of scripts that can be imported into individual jenkins instances via scriptler? (1) https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin#ScriptlerPlugin-Catalogs
          emangual Ed Mangual added a comment -

          That is correct.

          emangual Ed Mangual added a comment - That is correct.

          imod, can I launch this "Import" step through a groovy script as well?

          That way, I could have a job that listens to my in-house git repository, and imports all new/changed scripts on every push. Which would be as good as specifiying an external GIT repo.

          Of course, if I manage the scripts externally, a way to forbid direct changes through the Jenkins UI would be necessary, but this is the next step

          hakan Hakan Tandogan added a comment - imod , can I launch this "Import" step through a groovy script as well? That way, I could have a job that listens to my in-house git repository, and imports all new/changed scripts on every push. Which would be as good as specifiying an external GIT repo. Of course, if I manage the scripts externally, a way to forbid direct changes through the Jenkins UI would be necessary, but this is the next step

          hakan no sorry, that's not possible - but there is an extension point you can implement to add a new catalog: org.jenkinsci.plugins.scriptler.share.ScriptInfoCatalog

          imod Dominik Bartholdi added a comment - hakan no sorry, that's not possible - but there is an extension point you can implement to add a new catalog: org.jenkinsci.plugins.scriptler.share.ScriptInfoCatalog
          daxgames Dax Games added a comment - - edited

          Useful for us too.

          My Jenkins is authenticated and authorized using SAML and I cannot figure out how to push/pull to Scriptler Git repo on a Jenkins server. Maybe you could share some insight.

          To be clear:

          1. I would like to have a remote Git Repo that is AUTOMATICALY cloned/pulled to the Jenkins server possibly periodically or on repo change.
          2. Scripts should be immediately available for use via the scriptler interface.
            a. I do not want to have to manually click on 1-[n] scripts to import them one at a time.
          3. Should be configurable via JCASC.

          Plus centralization of the scripts is better than managing a repo on EVERY Jenkins server.

          daxgames Dax Games added a comment - - edited Useful for us too. My Jenkins is authenticated and authorized using SAML and I cannot figure out how to push/pull to Scriptler Git repo on a Jenkins server. Maybe you could share some insight. To be clear: I would like to have a remote Git Repo that is AUTOMATICALY cloned/pulled to the Jenkins server possibly periodically or on repo change. Scripts should be immediately available for use via the scriptler interface. a. I do not want to have to manually click on 1- [n] scripts to import them one at a time. Should be configurable via JCASC. Plus centralization of the scripts is better than managing a repo on EVERY Jenkins server.

          People

            domi Dominik Bartholdi
            joesephz Joe Zeldin
            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: