Can I mass edit jenkins jobs by modifying the config.xml files?

依然范特西╮ 提交于 2019-12-03 09:46:20

Under the "Managr Hudson" option, there's a "Reload Configuration from Disk" item that will do what you want - re-reads the config.xml for projects while Hudson is running. You can always restart Hudson to get the same effect.

Another way to mass edit jobs is to use the REST API; you can edit the job configurations manually and then use HTTP POST to commit them back to Hudson. If you go to [Your Hudson URL]/job/[example job name]/api Hudson will display help information on using the API.

You can use XSLT (templates) to automatically generate configuration xmls and configure via rest api. Use Jenkins to configure its own jobs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!