Quantcast

Installing Jenkins plugins via API?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Installing Jenkins plugins via API?

dduvnjak

Is there a Jenkins API call which enables remote plugin installation?

The documentation implies that possibility, but I can't seem to find it anywhere. I'm trying to automatically install several plugins on newly spun up Jenkins instances.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Jenkins plugins via API?

Mark Waite
I use the command line interface with the command "install-plugins" followed by the name of the plugin.

java -jar jenkins-cli.jar http://127.0.0.1:8080/ install-plugins Claim CppCheck Git Findbugs HGCA HTMLPublisher

etc.

Is that what you're seeking?

Mark Waite


From: dduvnjak <[hidden email]>
To: [hidden email]
Sent: Monday, September 3, 2012 5:50 AM
Subject: Installing Jenkins plugins via API?

Is there a Jenkins API call which enables remote plugin installation?
The documentation implies that possibility, but I can't seem to find it anywhere. I'm trying to automatically install several plugins on newly spun up Jenkins instances.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Jenkins plugins via API?

Mark Waite
My command line has a typo.  The command should be:

java -jar jenkins-cli.jar http://127.0.0.1:8080/ install-plugin Claim CppCheck Git Findbugs HGCA HTMLPublisher 

You can see the list of commands available through the command line with

java -jar jenkins-cli.jar http://127.0.0.1:8080/ help

Mark Waite


From: Mark Waite <[hidden email]>
To: "[hidden email]" <[hidden email]>
Sent: Monday, September 3, 2012 12:15 PM
Subject: Re: Installing Jenkins plugins via API?

I use the command line interface with the command "install-plugins" followed by the name of the plugin.

java -jar jenkins-cli.jar http://127.0.0.1:8080/ install-plugins Claim CppCheck Git Findbugs HGCA HTMLPublisher

etc.

Is that what you're seeking?

Mark Waite


From: dduvnjak <[hidden email]>
To: [hidden email]
Sent: Monday, September 3, 2012 5:50 AM
Subject: Installing Jenkins plugins via API?

Is there a Jenkins API call which enables remote plugin installation?
The documentation implies that possibility, but I can't seem to find it anywhere. I'm trying to automatically install several plugins on newly spun up Jenkins instances.




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Installing Jenkins plugins via API?

dduvnjak
In reply to this post by dduvnjak
Hi Mike,

I'm actually looking for the REST API.

Dario

On Monday, September 3, 2012 1:50:31 PM UTC+2, dduvnjak wrote:

Is there a Jenkins API call which enables remote plugin installation?

The documentation implies that possibility, but I can't seem to find it anywhere. I'm trying to automatically install several plugins on newly spun up Jenkins instances.

Loading...