Saturday, February 20, 2021

To install jenkins plugin using CLI

 to install jenkins-cli:

https://www.jenkins.io/doc/book/managing/cli/

download jar from : JENKINS_URL/jnlpJars/jenkins-cli.jar


to install a plugin, fetch the plugin detail from releases section like below.

https://plugins.jenkins.io/role-strategy/#releases


Run command:


java -jar jenkins-cli.jar -s http://<jenkins_server>:<port>/ -auth uday:11e6455c57463325fd4a2efa81883b2926 install-plugin role-strategy:3.1


The access token can be generated in jenkins:

JENKINS_URL/me/configure

And click on generate token.


No comments:

Post a Comment