Reputation: 11
I have to create a custom workspace for only one Jenkins build to get files form Git. The standard workspace folder is : /var/lib/jenkins/workspace/test For testing purposes I would like to set the workspace into /tmp/workspace/test I have created the folders and give access.
In the build configuration I have clicked on "Use custom workspace", set my custom folder, apply (see the green popup "Saved") and Save it.
But when I run the build:
Is there something specific to do to be able to update the custom workspace for a specific build ?
Upvotes: 0
Views: 2030
Reputation: 75
This is a known Jenkins issue: https://issues.jenkins.io/browse/JENKINS-67638
The workaround is to go onto your Jenkins machine, find the config.xml for the relevant project, and add the customWorkspace tag manually
<customWorkspace>myWorkspace/</customWorkspace>
Then restart Jenkins (Easiest way is to go to <YourJenkinsUrl>/safeRestart
)
Upvotes: 1