Forked from hgomez/jenkins-plugins-batch-install.md
Created
February 4, 2020 05:57
-
-
Save chefren/4281639b7ec5e12f1cc5cb10132915de to your computer and use it in GitHub Desktop.
Revisions
-
hgomez revised this gist
Jul 22, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ! -
hgomez revised this gist
Jul 22, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 * --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 ! -
hgomez revised this gist
Jul 22, 2014 . 1 changed file with 55 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # 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 -
hgomez created this gist
Jul 22, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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