-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Jenkins 2.135
Cppcheck 1.23 crashes with:
13:13:42 [Cppcheck] Starting the cppcheck analysis. 13:13:42 ERROR: Build step failed with exception 13:13:42 java.lang.NullPointerException 13:13:42 at org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:387) 13:13:42 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 13:13:42 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) 13:13:42 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) 13:13:42 at hudson.model.Build$BuildExecution.post2(Build.java:186) 13:13:42 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) 13:13:42 at hudson.model.Run.execute(Run.java:1840) 13:13:42 at hudson.matrix.MatrixRun.run(MatrixRun.java:153) 13:13:42 at hudson.model.ResourceController.execute(ResourceController.java:97) 13:13:42 at hudson.model.Executor.run(Executor.java:429) 13:13:42 Build step 'Publish Cppcheck results' marked build as failure
I see the same on Jenkins 2.121.2 running Windows Server 2008 R2.
Downgrading to 1.22 did not solve the issue.
[Cppcheck] Starting the cppcheck analysis.
ERROR: Build step failed with exception
java.lang.NullPointerException
at org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:436)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
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:1823)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Publish Cppcheck results' marked build as failure
The last "working" build 2 days ago showed:
[Cppcheck] Starting the cppcheck analysis.
[Cppcheck] Processing 1 files with the pattern 'cppcheck.xml '.
[Cppcheck] Not changing build status, since no threshold has been exceeded.
[Cppcheck] Ending the cppcheck analysis.
I updated from Jenkins 2.107.x yesterday. It seems to fit the time, when cppcheck started to NPE.