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

CloneWorkspaceSCM does not work in a pipeline job

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Ubuntu 16.04, Jenkins 2.103

      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?

          [JENKINS-49164] CloneWorkspaceSCM does not work in a pipeline job

          Lars created issue -
          Andrew Bayer made changes -
          Component/s Original: pipeline [ 21692 ]

          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.

          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.

          Lars added a comment -

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

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

          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.

          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.
          Andrew Bayer made changes -
          Assignee Original: Andrew Bayer [ abayer ]
          Jenkins IRC Bot made changes -
          Component/s Original: clone-workspace-plugin [ 15700 ]

          Lars added a comment -

          Completely abandoned CloneWorkspace plugin now, because nobody cares about it. Feel free to close.

          Lars added a comment - Completely abandoned CloneWorkspace plugin now, because nobody cares about it. Feel free to close.

            Unassigned Unassigned
            wolterhis Lars
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: