随着任务的增多。须要一个脚本能够检查全部的jenkins project的配置。比方提取任务计划配置,开发人员信息等。
首先要能够得到全部的project名称。
能够通过REST API实现:
http://your_jenkins_server/api/xml或者JSON格式
http://your_jenkins_server/api/json
然后对每一个project,用以下的API能够获得配置信息
http://your_jenkins_server/job/your_job/config.xml