Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get system configuration for jenkins using remote access API

Tags:

jenkins

api

Jenkins provide nice Remote Access API, which can be used to fetch lots of information like jobs and views.

I wonder whether or how to fetch the system (global) configurations from remote access API.

Those information are in web page http://your.jenkins.url/manage

like image 818
Larry Cai Avatar asked Aug 21 '13 03:08

Larry Cai


1 Answers

You can GET the config of your master / nodes through

http://your.jenkins.url/computer/(master)/config.xml

Is that good enough for you ?

Note: since mid-2014, POSTing has been disabled.

To find more about APIs, try adding /api to the end of some URLs.

To find which objects expose APIs, search for _api.jelly in https://github.com/jenkinsci/jenkins/find/master (press 't' then type '_api.jelly')

like image 90
coffeebreaks Avatar answered Sep 20 '22 14:09

coffeebreaks