Batch Rename Hudson Jobs

This question talks about renaming in batch mode in Hudson, but it only mentions changing the config.xml file.

http://wiki.hudson-ci.org/display/HUDSON/Administering+Hudson says you can rename tasks by simply renaming the directories in which they are located.

In my Hudson setup, I have many tasks related to each other, and also use the Nested Views plugin, which writes the name of the task in the master config.xml file.

It seems that the correct way to bulk rename is to rename the directory, then edit the master config.xml file and then the config.xml files in each job directory. It is right?

+3
source share
2

, .

, Hudson " ", . . . - .

+1

config.xml . , API Hudson.

API, :

  • , POST http://my-hudson-server/createItem?name=newJobName&mode=copy&from=oldJobName

  • , POST http://my-hudson-server/job/oldJobName/doDelete

http://my-hudson-server/api , API.

+2

All Articles