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

vSphere plugin causing non-vSphere jobs to fail

      I have vSphere plugin 0.9 and Jenkins 1.462 (and I tried 1.463) and it caused matrix jobs, that do not run on vSphere slaves, to die with this error:

      Started by timer
      FATAL: null
      java.lang.NullPointerException
      at org.jenkinsci.plugins.vSphereCloudRunListener.onStarted(vSphereCloudRunListener.java:32)
      at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
      at hudson.model.Run.run(Run.java:1429)
      at hudson.matrix.MatrixBuild.run(MatrixBuild.java:248)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)
      at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

      To add insult to injury, the builds then got locked.

      None of the vSphere slaves seemed to be having problems (in fact, jobs were building on them just fine).

      My solution was to change all my vSphere slaves to normal slaves and then removing the plugin. Simply changing the slaves wasn't enough.

          [JENKINS-13722] vSphere plugin causing non-vSphere jobs to fail

          Reproduced and roled back to 0.5.

          I got 2 different stacktraces.
          One is same as the description and another is:

          FATAL: null
          java.lang.NullPointerException
          	at hudson.matrix.MatrixBuild$RunnerImpl.doRun(MatrixBuild.java:285)
          	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
          	at hudson.model.Run.run(Run.java:1434)
          	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:248)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:239)
          	at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
          

          OHTAKE Tomohiro added a comment - Reproduced and roled back to 0.5. I got 2 different stacktraces. One is same as the description and another is: FATAL: null java.lang.NullPointerException at hudson.matrix.MatrixBuild$RunnerImpl.doRun(MatrixBuild.java:285) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480) at hudson.model.Run.run(Run.java:1434) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:248) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

          Code changed in jenkins
          User: Jason Swager
          Path:
          src/main/java/org/jenkinsci/plugins/vSphereCloudRunListener.java
          http://jenkins-ci.org/commit/vsphere-cloud-plugin/cd25ecd19ffde72eb6b8d9411ca968b10e1f4f76
          Log:
          JENKINS-13722: Fixed problem that broke unrelated matrix builds.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jason Swager Path: src/main/java/org/jenkinsci/plugins/vSphereCloudRunListener.java http://jenkins-ci.org/commit/vsphere-cloud-plugin/cd25ecd19ffde72eb6b8d9411ca968b10e1f4f76 Log: JENKINS-13722 : Fixed problem that broke unrelated matrix builds.

          I get this behaviour too. I can't execute multi-configuration jobs at all, and I get the same stack trace as the description.

          Martin-Louis Bright added a comment - I get this behaviour too. I can't execute multi-configuration jobs at all, and I get the same stack trace as the description.

          Jason Swager added a comment -

          Fixed in v0.10 of the plugin.

          Jason Swager added a comment - Fixed in v0.10 of the plugin.

            Unassigned Unassigned
            docwhat Christian Höltje
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: