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

Allow the workflowLibs.git to be hosted someplace else

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None
    • Jenkins-Version: 1.651.1
      workflow-cps-global-lib: 2.0

      We are using GitHub Enterprise and the GitHub Organization Folders for everything.

      Well, everything except workflowLibs.git.

      We would like to be able to use the same workflow for contributing, managing, etc. workflowLibs.git code that we use for everything else.

      In addition, we plan on having (roughly) one Jenkins per Organization, but would like to share (some? all?) of the workflowLibs.git across Jenkinses.

      If this isn't done directly (i.e. just replace the built-in git repository with an external one) then some guidance or suggested workflows would be nice.

      Some questions:

      • Is ${JENKINS_HOME/workflow-libs}} the actual repository? Is there a bare repository someplace I'm not seeing?
      • Is there a Jenkinsfile way to push changes into workflowLibs.git?
      • Can I just add a new remote to ${JENKINS_HOME}/workflow-libs and do a git pull --mirror?

            jglick Jesse Glick
            docwhat Christian Höltje
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: