Status: Open (View Workflow)
The clone workspace plugin doesn't handle matrix jobs. Running a build of a job using a workspace snapshot SCM from a matrix job results in the error:
ERROR: [ JOB ]'s most recent build matching the criteria 'Any' doesn't have a workspace snapshot attached.
Please run another build in [ JOB ] to get the workspace snapshot generated and attached.
It might be necessary to specify the matrix configuration from which to clone the workspace in the downstream job's configuration, if possible including variable interpolation from the current config. This would allow a downstream matrix job to clone the workspace from an upstream job with a similar set of axes.
Any progress here? I see a pull request but the status "Resolution" is still "Unresolved". In jenkins v1.512 this issue is still present.
I have asked on the pull request. Lets see if we can get some progress. It would be great to see this issue fixed.
You can try this: clone-workspace-scm.hpi
Just build from my repo.
Code changed in jenkins
User: Andrew Bayer
Merge pull request #3 from trnl/master
JENKINS-6890: Support for Matrix jobs
I have 2 jobs in my stream, after the first one is completed the 2nd one fails with the same error:
Building in workspace C:\Users\myname\.jenkins\workspace\MyJob02
ERROR: MyJob01's most recent build matching the criteria 'Any' doesn't have a workspace snapshot attached.
Please run another build in MyJob01 to get the workspace snapshot generated and attached.
But when I check the build result:
It seems that clone-workspace-scm searches the workspace.tar.gz archive in a wrong folder