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

Offer an alternate location to store plugins and groovy hook scripts

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      A requested feature on Docker official jenkins image is ability to created derived images with custom plugins. But as jenkins_home is a volume the Docker image can't be built with custom plugins / hook scripts.

      This feature request is about introducing, in addition to jenkins.war:/WEB-INF and JENKINS_HOME, a supported directory where jenkins would pick-up plugins and hook scripts.

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment -

            What's wrong with changing jenkins.war?

            Show
            danielbeck Daniel Beck added a comment - What's wrong with changing jenkins.war?
            Hide
            ndeloof Nicolas De Loof added a comment -

            Changing jenkins.war require to rebuild the war then generate a fresh new docker image with this custom binary, not relying on official one.

            Assuming jenkins do support a "patch" directory in addition to bundled-in-war and jenkins_home, it's easier for end-user to create a Dockerfile like this :

            from jenkins:1.565.3
            run curl -L https://updates.jenkins-ci.org/latest/git.hpi -o /opt/jenkins_patch/plugins/git.hpi

            Show
            ndeloof Nicolas De Loof added a comment - Changing jenkins.war require to rebuild the war then generate a fresh new docker image with this custom binary, not relying on official one. Assuming jenkins do support a "patch" directory in addition to bundled-in-war and jenkins_home, it's easier for end-user to create a Dockerfile like this : from jenkins:1.565.3 run curl -L https://updates.jenkins-ci.org/latest/git.hpi -o /opt/jenkins_patch/plugins/git.hpi
            Hide
            jglick Jesse Glick added a comment -

            Given that the original request in JENKINS-25153, about creating a customized WAR with different bundled plugins, has been resolved, is this issue still valid for some other reason?

            Show
            jglick Jesse Glick added a comment - Given that the original request in JENKINS-25153 , about creating a customized WAR with different bundled plugins, has been resolved, is this issue still valid for some other reason?
            Hide
            danielbeck Daniel Beck added a comment -

            That solution looks like a bad hack.

            Show
            danielbeck Daniel Beck added a comment - That solution looks like a bad hack.
            Hide
            jglick Jesse Glick added a comment -

            Creating a customized WAR? It is pretty easy to do and lets you precisely customize what is considered “bundled” by the Plugin Manager UI.

            Show
            jglick Jesse Glick added a comment - Creating a customized WAR? It is pretty easy to do and lets you precisely customize what is considered “bundled” by the Plugin Manager UI.
            Hide
            danielbeck Daniel Beck added a comment -

            Nicolas De Loof Is this still something you are interested in?

            Show
            danielbeck Daniel Beck added a comment - Nicolas De Loof Is this still something you are interested in?

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                ndeloof Nicolas De Loof
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: