Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save chefren/4281639b7ec5e12f1cc5cb10132915de to your computer and use it in GitHub Desktop.

Select an option

Save chefren/4281639b7ec5e12f1cc5cb10132915de to your computer and use it in GitHub Desktop.

Revisions

  1. @hgomez hgomez revised this gist Jul 22, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions jenkins-plugins-batch-install.md
    Original file line number Diff line number Diff line change
    @@ -62,4 +62,6 @@ Then get script :

    batch-install-jenkins-plugins.sh will download json file containing up to date plugins and will download plugins to be installed and non optional dependent plugins

    Of course, better run this script when Jenkins is down to avoid runtime issue.

    Script powo !
  2. @hgomez hgomez revised this gist Jul 22, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion jenkins-plugins-batch-install.md
    Original file line number Diff line number Diff line change
    @@ -52,12 +52,14 @@ If you want some plugins to be excluded, for example those found in dependency l

    Then get script :

    curl -L https://raw.githubusercontent.com/hgomez/devops-incubator/master/forge-tricks/batch-install-jenkins-plugins.sh -o batch-install-jenkins-plugins.sh
    curl -L https://raw.githubusercontent.com/hgomez/devops-incubator/master/forge-tricks/batch-install-jenkins-plugins.sh -o batch-install-jenkins-plugins.sh

    * --plugins (or -p) is for file containing plugins to be installed
    * --excludedplugins (or -e) is for file containing plugins to be excluded
    * --plugindir (or -p) is for directory path to copy plugins (.jpi)

    batch-install-jenkins-plugins.sh --plugins iplugins --excludedplugins xplugins --plugindir /var/lib/myjenkins/plugins

    batch-install-jenkins-plugins.sh will download json file containing up to date plugins and will download plugins to be installed and non optional dependent plugins

    Script powo !
  3. @hgomez hgomez revised this gist Jul 22, 2014. 1 changed file with 55 additions and 2 deletions.
    57 changes: 55 additions & 2 deletions jenkins-plugins-batch-install.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Scripted Mass install
    # Scripted Jenkins Plugins install

    Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI.
    BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.
    @@ -7,4 +7,57 @@ Hopefully, mass installation (or update) could be easy using a simple bash scrip

    * https://raw.githubusercontent.com/hgomez/devops-incubator/master/forge-tricks/batch-install-jenkins-plugins.sh


    Create a file containing plugins to be installed (or updated), ie iplugins :

    analysis-core
    audit-trail
    build-flow-plugin
    buildgraph-view
    build-metrics
    build-timeout
    changelog-history
    claim
    config-file-provider
    configurationslicing
    console-column-plugin
    dashboard-view
    greenballs
    htmlpublisher
    mercurial
    sonar
    ssh-agent
    thucydides
    timestamper
    viewVC
    WebSVN2

    If you want some plugins to be excluded, for example those found in dependency list, create a second file with excluded list (ie, xplugins):

    ant
    antisamy-markup-formatter
    credentials
    cvs
    external-monitor-job
    javadoc
    ldap
    mailer
    matrix-auth
    maven-plugin
    pam-auth
    ssh-credentials
    ssh-slaves
    subversion
    translation
    windows-slaves

    Then get script :

    curl -L https://raw.githubusercontent.com/hgomez/devops-incubator/master/forge-tricks/batch-install-jenkins-plugins.sh -o batch-install-jenkins-plugins.sh

    * --plugins (or -p) is for file containing plugins to be installed
    * --excludedplugins (or -e) is for file containing plugins to be excluded
    * --plugindir (or -p) is for directory path to copy plugins (.jpi)

    batch-install-jenkins-plugins.sh --plugins iplugins --excludedplugins xplugins --plugindir /var/lib/myjenkins/plugins


  4. @hgomez hgomez created this gist Jul 22, 2014.
    10 changes: 10 additions & 0 deletions jenkins-plugins-batch-install.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Scripted Mass install

    Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI.
    BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.

    Hopefully, mass installation (or update) could be easy using a simple bash script (curl/python required) :

    * https://raw.githubusercontent.com/hgomez/devops-incubator/master/forge-tricks/batch-install-jenkins-plugins.sh