How do i install old version of Plugin in Jenkins

I am trying to install a old version of plugin , how do i install it . Zephyr Enterprise Test Management this the plugin link the latest version is 2.9 . I am trying to install 2.7 version . How do i install it with Jenkins CLI

The plugin installation manager syntax to install an older release is included in your screenshot. Refer to the zephyr-enterprise-test-management:2.7 argument below:

jenkins-plugin-cli --plugins zephyr-enterprise-test-management:2.7

Darin Pope has provided two videos that show how to install a Jenkins plugin from the command line:

Use the Jenkins command line interface

Use the plugin installation manager tool

java -jar jenkins-cli.jar -s http://localhost:8080/ -auth [user:pwd] is the initial command then to install the 2.7 what should i add to this … i tried combinations it does not work

You can install the plugin via the UI. Go to Manage Jenkins β†’ Plugins β†’ Advanced Settings
From the plugin site you can get the download link for the old version, just enter it in the deploy field and then click the deploy button.
If it was not installed before then you can directly use it, otherwise you need to restart your instance. Of course this only works when you don’t install plugins at startup forcefully or you use a docker image with fixed plugins.

1 Like

The plugin installation manager tool understands zephyr-enterprise-test-management:2.7 as a reference to the older version. The jenkins-cli.jar install-plugin command does not seem to understand that as a reference to the older version.

I had to use the guidance from @mawinter69 and copy the URL of the old version from the list of plugin releases.

java -jar jenkins-cli.jar -s localhost:8080 -auth username:password install-plugin \
https://updates.jenkins.io/download/plugins/zephyr-enterprise-test-management/2.7/zephyr-enterprise-test-management.hpi
1 Like

Thank you @mawinter69 and @MarkEWaite for all the information and support. The solution does work too