Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6890

clone-workspace-scm doesn't work when source job is a matrix job.

      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.

          [JENKINS-6890] clone-workspace-scm doesn't work when source job is a matrix job.

          Javatar007 added a comment -

          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

          Javatar007 added a comment - 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

          Uladzimir Mihura added a comment - Fixed this: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/pull/3 -vova

          Any progress here? I see a pull request but the status "Resolution" is still "Unresolved". In jenkins v1.512 this issue is still present.

          Zaraki Kenpachi added a comment - Any progress here? I see a pull request but the status "Resolution" is still "Unresolved". In jenkins v1.512 this issue is still present.

          Henrik Skupin added a comment -

          I have asked on the pull request. Lets see if we can get some progress. It would be great to see this issue fixed.

          Henrik Skupin added a comment - I have asked on the pull request. Lets see if we can get some progress. It would be great to see this issue fixed.

          Peter Kovacs added a comment -

          Can someone upload a snapshot build, so we can try to install?

          Peter Kovacs added a comment - Can someone upload a snapshot build, so we can try to install?

          Uladzimir Mihura added a comment - - edited

          You can try this: clone-workspace-scm.hpi

          Just build from my repo.

          Uladzimir Mihura added a comment - - edited You can try this: clone-workspace-scm.hpi Just build from my repo.

          Peter Kovacs added a comment -

          Thanks, will try.

          Peter Kovacs added a comment - Thanks, will try.

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          src/main/java/hudson/plugins/cloneworkspace/CloneWorkspaceSCM.java
          http://jenkins-ci.org/commit/jenkins-clone-workspace-scm-plugin/90b2239f59cf22c094d8ccfe755371f946fbcdba
          Log:
          Merge pull request #3 from trnl/master

          JENKINS-6890: Support for Matrix jobs

          Compare: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/compare/a659810f2c97...90b2239f59cf

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/java/hudson/plugins/cloneworkspace/CloneWorkspaceSCM.java http://jenkins-ci.org/commit/jenkins-clone-workspace-scm-plugin/90b2239f59cf22c094d8ccfe755371f946fbcdba Log: Merge pull request #3 from trnl/master JENKINS-6890 : Support for Matrix jobs Compare: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/compare/a659810f2c97...90b2239f59cf

            Unassigned Unassigned
            evilchili evilchili
            Votes:
            8 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: