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

Cannot clone workspace that was created using ssscm


      When trying to clone a workspace that was produced by a job using the shell-script-scm plugin, the cloning job produces the following NPE:

      Restoring workspace from build #59 of project OL-coverity-ST8-build
      FATAL: null
      	at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:894)
      	at hudson.model.AbstractBuild.access$600(AbstractBuild.java:104)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:634)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      	at hudson.model.Run.execute(Run.java:1745)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)

      The shell-script-scm plugin does not produce a changelog and doesn't provide a parser for the changelog. However, the "clone workspace SCM" requires a changelog parser. Therefore, both plugins cannot work together.

      I believe that this should be fixed in both plugins: the clone workspace plugin should handle the case when the changelog parser is null, and the ssscm should return "hudson.scm.NullSCM" instead of null.

            richscze nobody
            olenz Olaf Lenz
            0 Vote for this issue
            2 Start watching this issue