-
Bug
-
Resolution: Won't Fix
-
Critical
-
None
-
Jenkins 1.580.2 (LTS)
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 java.lang.NullPointerException 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.
Shell script scm plugin is not delivered by the Jenkins update center. It has only one tag in its repository and has had no updates in many years. This won't be fixed