In Jenkins, how do you rename work using the CLI?

I read this wiki article on the Jenkins CLI . Is there a way to rename a job through the CLI? I can not find a way. An obvious workaround would be to copy the task and then delete the old one, but I hope there will be a more direct path.

+4
source share
2 answers

I would not worry about my own Jenkins CLI. If you just go to the Jenkins job directory on your file system and rename the job using the unix mv command, then upgrade Jenkins, everything should be fine. (you may need to reload the configuration from disk in Jenkins settings if the update does not work)

0
source

For what it was worth, I had to rename more jobs and was hoping for a CLI. There is no special rename command. I did not try get-joband then put forward the modified version again, maybe that would work.

I don’t have direct access to the Jenkins machine, and therefore I can’t mess around on the file system, as some suggested.

- , : https://.../jenkins/job/OLD-JOB-NAME/rename? NewName = NEW-JOB-NAME - " ", .

0

All Articles