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

Installing multiple plugins using "install-plugin" jenkins CLI command

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I would like to be able to install all the plugins I require in an empty jenkins install.

      I use this bash command to install a list of plugins:

      java -jar $CLI_WAR -s "http://localhost:4444/" install-plugin parameterized-trigger http://updates.jenkins-ci.org/download/plugins/git/2.3.5/git.hpi http://updates.jenkins-ci.org/download/plugins/git-client/1.17.1/git-client.hpi http://updates.jenkins-ci.org/download/plugins/build-name-setter/1.3/build-name-setter.hpi  -restart
      

      Installing multiple plugins based on their "short name" seems to work fine (even though it is not documented). However, installing multiple plugins from URL's does not seem to work. I don't get any errors. Only the first plugin from URL seems to get installed.

      It would be great if this becomes a consistent documented feature.

      The workaround is to run "install-plugin" many times. Downside is that you'd have to enter the passphrase many times.

      Using jenkins 1.643.

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Updated the component

            Show
            oleg_nenashev Oleg Nenashev added a comment - Updated the component
            Hide
            danielbeck Daniel Beck added a comment -

            Downside is that you'd have to enter the passphrase many times.

            Workaround would be to use the CLI over SSH. Would be a lot faster too, I expect.

            Show
            danielbeck Daniel Beck added a comment - Downside is that you'd have to enter the passphrase many times. Workaround would be to use the CLI over SSH. Would be a lot faster too, I expect.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/hudson/cli/InstallPluginCommand.java
            http://jenkins-ci.org/commit/jenkins/2612298f752352b4a659d46168998ede49e33588
            Log:
            Merge pull request #2674 from jglick/InstallPluginCommand

            [FIX JENKINS-32358] Correctly compute plugin name when multiple sources are passed to install-plugin CLI command

            Compare: https://github.com/jenkinsci/jenkins/compare/4f814c0a9f8e...2612298f7523

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/cli/InstallPluginCommand.java http://jenkins-ci.org/commit/jenkins/2612298f752352b4a659d46168998ede49e33588 Log: Merge pull request #2674 from jglick/InstallPluginCommand [FIX JENKINS-32358] Correctly compute plugin name when multiple sources are passed to install-plugin CLI command Compare: https://github.com/jenkinsci/jenkins/compare/4f814c0a9f8e...2612298f7523
            Hide
            danielbeck Daniel Beck added a comment -

            As Jesse's PR message indicates, this bug is much weirder than described: It actually installs the wrong plugin…

            Show
            danielbeck Daniel Beck added a comment - As Jesse's PR message indicates, this bug is much weirder than described: It actually installs the wrong plugin…
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            The fix has been integrated and release in Jenkins 2.38

            Show
            oleg_nenashev Oleg Nenashev added a comment - The fix has been integrated and release in Jenkins 2.38

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                chronozphere Nathan Schagen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: