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

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

    XMLWordPrintable

Details

    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

            chronozphere Nathan Schagen created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Component/s core [ 15593 ]
            Component/s _unsorted [ 19622 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]
            chronozphere Nathan Schagen made changes -
            Description I would like to be able to install all the plugins I require in an empty jenkins install.

            I use these bash commands to install a list of plugins from a file:

            {code:bash}
            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
            {code}

            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.
            I would like to be able to install all the plugins I require in an empty jenkins install.

            I use these bash commands to install a list of plugins from a file:

            {code}
            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
            {code}

            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.
            chronozphere Nathan Schagen made changes -
            Description I would like to be able to install all the plugins I require in an empty jenkins install.

            I use these bash commands to install a list of plugins from a file:

            {code}
            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
            {code}

            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.
            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 from a file:

            {code}
            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
            {code}

            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.
            chronozphere Nathan Schagen made changes -
            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 from a file:

            {code}
            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
            {code}

            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.
            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:

            {code}
            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
            {code}

            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.
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 167970 ] JNJira + In-Review [ 182920 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            danielbeck Daniel Beck made changes -
            Labels lts-candidate
            danielbeck Daniel Beck made changes -
            Issue Type Improvement [ 4 ] Bug [ 1 ]
            danielbeck Daniel Beck made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-37212 [ JENKINS-37212 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            olivergondza Oliver Gond┼ża made changes -
            Labels lts-candidate 2.32.2-fixed

            People

              jglick Jesse Glick
              chronozphere Nathan Schagen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: