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

CloneWorkspaceSCM does not work in a pipeline job

XMLWordPrintable

    • 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?

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

              Created:
              Updated: