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

Intellij IDEA Inspection causes Exception during Jenkins Job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • analysis-model
    • 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.

       

        1. IDEA_Inspections.png
          IDEA_Inspections.png
          23 kB
        2. Terminal_error.png
          Terminal_error.png
          54 kB
        3. xml_Error.png
          xml_Error.png
          82 kB

            flashfish Marco
            flashfish Marco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: