The External Workspace Manager Plugin
<https://wiki.jenkins.io/display/JENKINS/External+Workspace+Manager+Plugin>
can be used to solve this problem.
I use it every day. It saves time as there is no stashing required.
Here is an example of reusing the workspace with two nodes in the same job:
def extWorkspace = exwsAllocate 'diskpool1'
node ('linux') {
exws (extWorkspace) { sh 'do stuff' }
}
node ('test') {
exws (extWorkspace) { sh 'more stuff' }
}
Two different jobs can also reuse the same workspace, again without stashing,
see this example
<https://github.com/jenkinsci/external-workspace-manager-plugin/blob/master/doc/PIPELINE_EXAMPLES.md#workspace-reuse-in-two-different-jobs>.
You will need the run selector plugin
<https://wiki.jenkins-ci.org/display/JENKINS/Run+Selector+Plugin> for this case.
If you need help to set it up, post your question here, I should be able to
help you.
Martin
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/177ca02a-e02f-46f5-9142-bf459a3c9da6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.