Issue
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 newworkspace
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
So please check this before marking this question as a duplicate.
Solution
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
Answered By - Exploring