Project

Profile

Help

Plugins managment via rest api

Prerequisites

All requests below require authentification. Information about session can be passed by adding -b cookie.file to curl.

Plugin installation

curl -X POST -d '<jenkins><install plugin="git@2.0" /></jenkins>' --header 'Content-Type: text/xml' http://JENKINS/pluginManager/installNecessaryPlugins

Plugin list

Compact in xml

curl http://JENKINS/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins

Detailed in json

curl http://JENKINS/pluginManager/api/json?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins

Service for converting xml to table http://codebeautify.org/xml-to-html-converter
Service for converting json to table http://json2table.com/#

Links