-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Warnings Next Generation Plugin 8.4.2
MsBuild is used to compile a .NetFramework application.
In the pipeline are these steps:
recordIssues enabledForFailure: true, tool: msBuild() recordIssues enabledForFailure: true, tool: taskScanner(includePattern: '*.cs')
The second recordIssues step causes an NPE.
Console log:
[Pipeline] recordIssues [MSBuild] Sleeping for 5 seconds due to JENKINS-32191... [MSBuild] Parsing console log (workspace: 'E:\Jenkins-Slave-E2\workspace\dotnet\build_converter\FE_PARSER\SWSConverter') [MSBuild] Successfully parsed console log [MSBuild] -> found 192 issues (skipped 254 duplicates) [MSBuild] [-ERROR-] Can't create fingerprints for some files: [MSBuild] [-ERROR-] - 'E:/Jenkins-Slave-E2/workspace/dotnet/build_converter/FE_PARSER/PROF08/SWSFoxGui/CSC', IO exception has been thrown: java.nio.file.NoSuchFileException: E:\Jenkins-Slave-E2\workspace\dotnet\build_converter\FE_PARSER\PROF08\SWSFoxGui\CSC [MSBuild] Post processing issues on 'Jenkins-Slave-E2' with source code encoding 'windows-1252' [MSBuild] Creating SCM blamer to obtain author and commit information for affected files [MSBuild] Creating SCM miner to obtain statistics for affected repository files [MSBuild] Resolving file names for all issues in source directory 'E:\Jenkins-Slave-E2\workspace\dotnet\build_converter\FE_PARSER\SWSConverter' [MSBuild] -> resolved paths in source directory (78 found, 1 not found) [MSBuild] Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files) [MSBuild] -> resolved module names for 192 issues [MSBuild] Resolving package names (or namespaces) by parsing the affected files [MSBuild] -> resolved package names of 79 affected files [MSBuild] No filter has been set, publishing all 192 issues [MSBuild] Creating fingerprints for all affected code blocks to track issues over different builds [MSBuild] -> created fingerprints for 191 issues (skipped 1 issues) [MSBuild] Copying affected files to Jenkins' build folder 'C:\Jenkins\jobs\dotnet\jobs\build_converter\builds\587\files-with-issues' [MSBuild] -> 63 copied, 63 not in workspace, 1 not-found, 0 with I/O error [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline [Checks API] No suitable checks publisher found. java.lang.NullPointerException at edu.hm.hafner.analysis.Report.addAll(Report.java:174) at edu.hm.hafner.analysis.Report.copyIssuesAndProperties(Report.java:660) at edu.hm.hafner.analysis.Report.addAll(Report.java:194) at io.jenkins.plugins.analysis.core.model.AnalysisResult.getIssues(AnalysisResult.java:413) at java.util.Optional.map(Unknown Source) at io.jenkins.plugins.analysis.core.model.AnalysisHistory.getIssues(AnalysisHistory.java:142) at io.jenkins.plugins.analysis.core.model.DeltaReport.<init>(DeltaReport.java:48) at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.attachAction(IssuesPublisher.java:110) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.publishResult(IssuesRecorder.java:721) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:651) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:617) at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:1024) at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:985) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Finished: FAILURE
Reverting to version 8.4.1 fixed the issue.
- duplicates
-
JENKINS-63659 Null pointer exception fails job with warnings-ng 8.4.2
- Closed