Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renaming a Jenkins Job

I have renamed a Jenkins Job from the Jenkins GUI. I changed the Project name in the Configure menu and hitting Save afterwards.

  • However the workspace name for this Jenkins job has not been changed. What I am finding is upon the job execution a new workspace is getting created with this given new name and none of the contents of the old workspace is getting copied.

  • So the issue is contents of the old workspace is not copied to the new workspace.

What should I do instead?

I know there are several questions in SO in this area. However those do not answer my question.

Renaming job in jenkins/hudson

Rename a job in Jenkins

So please check this before marking this question as a duplicate.

like image 868
Exploring Avatar asked Dec 09 '25 22:12

Exploring


1 Answers

I was able to workaround this is issue using the Use custom workspace option.

To change this location, I need to choose configure job and click on the Advanced button in the Advanced Project Options section.

After opening the settings, you will find some more configuration options for your job. Look for the Use custom workspace option on the right hand side and check the box.

Reference: Jenkins: Change Workspaces and Build Directory Locations

like image 170
Exploring Avatar answered Dec 11 '25 13:12

Exploring