Renaming Jenkins Jobs

I renamed Jenkins Job from the Jenkins GUI. I changed the name of the project in the "Configure" menu and clicked "Save".

  • However, workspace namefor this job, Jenkins has not been modified. What I find is that when the task is completed, a new one is created workspacewith this new name, and not a single content of the old workspace is copied.

  • So, the problem in the contents of the old workspace is not copied to the new workspace.

What should I do instead?

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

Renaming a job in jenkins / hudson

Rename the work in Jenkins

Therefore, please check this before marking this question as a duplicate.

+3
source share
2 answers

I managed to get around this using a parameter Use custom workspace.

To change this location, I need to select a task configureand click the button Advancedin the section Advanced Project Options.

After opening the settings, you will find several more configuration parameters for your work. Look at the option Use custom workspaceon the right side and check the box.

Link: Jenkins: changing workspaces and placing directories

+7
source

node, , , . , , .

, ( ), , , vcs. , , .

, script .

+2

All Articles