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

SARIF parser does not allow collection of categories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • analysis-model
    • None
    • Jenkins Version 2.504.1
      Warnings Plugin Version: 12.6.0

        1. Problem Identified

      The Jenkins error occurred because the SARIF file contained `category` properties formatted as arrays:

      ```json
      "category": [
        "Recommended",
        "CodeStyle"
      ]
      ```

      But Jenkins expected them as strings:

      ```json
      "category": "Recommended"
      ```

      I attach the Jenkins Error log file.

            drulli Ulli Hafner
            ninefox Komatsubara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: