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

java.lang.NullPointerException in job when there is no quality gate in Warnings Next Generation Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-ng-plugin
    • jenkins 2.165 on windows server 2012
      warning-ng-plugin 3.0.1
    • warnings-ng 3.0.3

      A job fail with a java exception. the cause seem to be the Warnings Next Generation.

      It happen when the threshold  are undefined in the section health report configuration.

      the error show is: 

      ERROR: Build step failed with exception
      java.lang.NullPointerException
      at io.jenkins.plugins.analysis.core.util.QualityGate.map(QualityGate.java:179)
      at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.publishResult(IssuesRecorder.java:617)
      at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:553)
      at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:516)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1841)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:153)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)

            drulli Ulli Hafner
            christianruffenach Christian Ruffenach
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: