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

NullPointerException in CloneWorkspacePublisher.java:211 after upgrading to 0.4

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 1.424.2
      Jenkins Clone Workspace SCM Plug-in 0.4

      After upgrading clone-workspace-plugin from 0.3 to 0.4 this happens at the end of the job when it is supposed to start archiving:-

      BUILD SUCCESSFUL
      Total time: 5 minutes 1 second
      Archiving workspace
      ERROR: Publisher hudson.plugins.cloneworkspace.CloneWorkspacePublisher aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.cloneworkspace.CloneWorkspacePublisher.snapshot(CloneWorkspacePublisher.java:211)
      at hudson.plugins.cloneworkspace.CloneWorkspacePublisher.perform(CloneWorkspacePublisher.java:170)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635)
      at hudson.model.Build$RunnerImpl.post2(Build.java:161)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604)
      at hudson.model.Run.run(Run.java:1400)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:175)
      Email was triggered for: Failure

          [JENKINS-12835] NullPointerException in CloneWorkspacePublisher.java:211 after upgrading to 0.4

          This failure just happened after the upgrade and is blocking me from upgrading and taking advantage of the new exclude functionality.

          Environment: Jenkins 1.45. I did not make any changes to the jobs, just a plugin upgrade. Does anyone know of a workaround for this?

          Ruth Morgenstein added a comment - This failure just happened after the upgrade and is blocking me from upgrading and taking advantage of the new exclude functionality. Environment: Jenkins 1.45. I did not make any changes to the jobs, just a plugin upgrade. Does anyone know of a workaround for this?

          Ditto on Jenkins 1.455.

          Christian Höltje added a comment - Ditto on Jenkins 1.455.

          I've got the same issue after upgrading jenkins to Jenkins ver. 1.459.

          Archiving workspace
          ERROR: Publisher hudson.plugins.cloneworkspace.CloneWorkspacePublisher aborted due to exception
          java.lang.NullPointerException
          at hudson.plugins.cloneworkspace.CloneWorkspacePublisher.snapshot(CloneWorkspacePublisher.java:211)
          at hudson.plugins.cloneworkspace.CloneWorkspacePublisher.perform(CloneWorkspacePublisher.java:170)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
          at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680)
          at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:996)
          at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627)
          at hudson.model.Run.run(Run.java:1438)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:238)

          Miguel Almeida added a comment - I've got the same issue after upgrading jenkins to Jenkins ver. 1.459. Archiving workspace ERROR: Publisher hudson.plugins.cloneworkspace.CloneWorkspacePublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.cloneworkspace.CloneWorkspacePublisher.snapshot(CloneWorkspacePublisher.java:211) at hudson.plugins.cloneworkspace.CloneWorkspacePublisher.perform(CloneWorkspacePublisher.java:170) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:996) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627) at hudson.model.Run.run(Run.java:1438) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)

          cchabanois added a comment -

          The problem is that archiveMode is null.I solve this problem by editing the project and change "Archive method". I think that simply editing and saving the project should do the trick.

          cchabanois added a comment - The problem is that archiveMode is null.I solve this problem by editing the project and change "Archive method". I think that simply editing and saving the project should do the trick.

            Unassigned Unassigned
            edrandall Ed Randall
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: