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

Offer an alternate location to store plugins and groovy hook scripts

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • core
    • None

    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

            danielbeck Daniel Beck added a comment -

            What's wrong with changing jenkins.war?

            danielbeck Daniel Beck added a comment - What's wrong with changing jenkins.war?

            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

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

            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?
            danielbeck Daniel Beck added a comment -

            That solution looks like a bad hack.

            danielbeck Daniel Beck added a comment - That solution looks like a bad hack.
            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.

            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.
            danielbeck Daniel Beck added a comment -

            ndeloof Is this still something you are interested in?

            danielbeck Daniel Beck added a comment - ndeloof Is this still something you are interested in?

            I'm confused about the status of this ticket. It seems to me that I'm deriving a custom docker image from the official one, installing plugins and hooks.
            The only issue I faced was https://github.com/jenkinsci/docker/issues/563

            "Docker image can't be built with custom plugins / hook scripts." sounds rather scary to me.

            jbochenski Jakub Bochenski added a comment - I'm confused about the status of this ticket. It seems to me that I'm deriving a custom docker image from the official one, installing plugins and hooks. The only issue I faced was https://github.com/jenkinsci/docker/issues/563 "Docker image can't be built with custom plugins / hook scripts." sounds rather scary to me.

            People

              Unassigned Unassigned
              ndeloof Nicolas De Loof
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: