我可以通过修改config.xml文件来批量编辑jenkins作业吗? [英] Can I mass edit jenkins jobs by modifying the config.xml files?

查看:114
本文介绍了我可以通过修改config.xml文件来批量编辑jenkins作业吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在詹金斯(Jenkins)有很多工作,我们决定对所有这些工作进行广泛的更改,而这些更改对于通过UI进行更改将非常繁琐.使用jenkins主计算机上的脚本来编辑它们会容易得多,但是我不确定如何让jenkins识别尚未通过UI或其他api进行的config.xml更改.

I have a lot of jobs in jenkins and we have decided to make some wide ranging changes to all of them which will be very tedious to change through the UI. It would be much easier to edit them using scripts on the jenkins master machine but I'm not sure how to get jenkins to recognize changes to the the config.xml that haven't come through the UI or another api.

有没有办法让詹金斯从磁盘刷新作业配置?还是批量编辑作业的更好方法?

Is there a way to get jenkins to refresh job configurations from disk? Or a better way of mass editing jobs?

推荐答案

在"Managr Hudson"选项下,有一个从磁盘重载配置"项将执行您想要的操作-重新读取项目的config.xml在哈德逊跑步的时候.您始终可以重新启动Hudson以获得相同的效果.

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.

这篇关于我可以通过修改config.xml文件来批量编辑jenkins作业吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆