-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.401.2
When a Job is started for the analysis of the IDEA Build, with the marked Inspection (File: IDEA_Inspections) is started the following Error occur (File: TerminalError, xml_Error [the Inspection results]).
We think the problem is caused by this:
https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/IdeaInspectionParser.java
issueBuilder.setFileName(stripPathPrefix(file)) .setLineStart(Integer.parseInt(getChildValue(element, "line"))) // causes the issue
.setCategory(StringEscapeUtils.unescapeXml(getValue(problem)))
The IDEA Inspection (VulnerableLibrariesGobal) doesn't return the line-number, which cause the Exception.
I already created an issus on jetbrain and will also try create an pull-request to make the line-number optional.
- links to