-
New Feature
-
Resolution: Unresolved
-
Major
-
None
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.
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.
Finished: FAILURE
But when I check the build result:
c:\Users\myname\.jenkins\jobs\MyJob01\configurations\builds\2012-11-14_15-46-11\workspace.tar.gz
It seems that clone-workspace-scm searches the workspace.tar.gz archive in a wrong folder![](/images/icons/emoticons/help_16.png)