Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install specific version of a plugin with install-plugin command

I cant see examples of how to do this: https://jenkins.io/doc/book/managing/plugins/

I backup a list of all plugins installed and their versions.

I want to use install-plugin command to install all plugins (and their specific versions) from the list.

I dont see option to specify version to install-plugin command

like image 533
red888 Avatar asked Oct 25 '18 16:10

red888


1 Answers

To install a specific version you can run the command and pass a parameter with a colon like this: install-plugins.sh git:3.9.1

or alternatively add the list of plugins to a file (plugins.txt for instance):

git:3.9.1
saml:1.0.7

and run it with the following command: install-plugins.sh plugins.txt

like image 51
iomv Avatar answered Nov 15 '22 10:11

iomv