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

CloneWorkspaceSCM does not work in a pipeline job

    Details

    • Similar Issues:

      Description

      My first attempts with pipeline failed trying to make the Clone Workspace Plugin work.

      I could not find any descriptive example how to do that, so it's mostly guessing.

      I tried

      checkout([$class: 'CloneWorkspaceSCM', parentJobName: 'Job name', criteria: 'Any'])

      which at least can be executed.

      But the build hangs forever in the checkout step.

      Am I doing it wrong or is it a bug? How to clone a workspace in a pipeline job?

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          ...huh, I completely forgot I wrote this plugin in the first place! Yeah, it definitely doesn't work in Pipeline currently - but! I'll try to take a look next week and see how much heavy lifting is needed to get Pipeline support.

          Show
          abayer Andrew Bayer added a comment - ...huh, I completely forgot I wrote this plugin in the first place! Yeah, it definitely doesn't work in Pipeline currently - but! I'll try to take a look next week and see how much heavy lifting is needed to get Pipeline support.
          Hide
          wolterhis Lars added a comment -

          Have you found some time to have a look at this problem?

          Show
          wolterhis Lars added a comment - Have you found some time to have a look at this problem?
          Hide
          wolterhis Lars added a comment -

          Too bad this does not receive any attention. That makes it even harder to rebuild complex jobs in pipeline when you additionally have to abandon the workspace cloning.

          Show
          wolterhis Lars added a comment - Too bad this does not receive any attention. That makes it even harder to rebuild complex jobs in pipeline when you additionally have to abandon the workspace cloning.

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              wolterhis Lars
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: