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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          fvck_u 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

          Show
          fvck_u 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
          Show
          trnl Uladzimir Mihura added a comment - Fixed this: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/pull/3 -vova
          Hide
          z3r0 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.

          Show
          z3r0 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.
          Hide
          whimboo 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.

          Show
          whimboo 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.
          Hide
          szotyi Peter Kovacs added a comment -

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

          Show
          szotyi Peter Kovacs added a comment - Can someone upload a snapshot build, so we can try to install?
          Hide
          trnl Uladzimir Mihura added a comment - - edited

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

          Just build from my repo.

          Show
          trnl Uladzimir Mihura added a comment - - edited You can try this: clone-workspace-scm.hpi Just build from my repo.
          Hide
          szotyi Peter Kovacs added a comment -

          Thanks, will try.

          Show
          szotyi Peter Kovacs added a comment - Thanks, will try.
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              evilchili evilchili
            • Votes:
              8 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: