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

Native Analysis Model Format specifies "lineRanges" but does not use them.

XMLWordPrintable

      The documentation of the native format specifies an example here: https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/test/resources/io/jenkins/plugins/analysis/warnings/steps/issues.json

      When you actually feed the example into Jenkins, all entries below "lineRanges" are ignored and not used.

      ...
      "fileName": "test-file.txt",            
      "lineRanges": [                
        {                    
          "start": 110,                    
          "end": 111                
        },                
        {
          "start": 120,                    
          "end": 121                
        }            
      ],
      ...


      "lineStart" and "lineEnd" are accepted.

      ...
      "fileName": "test.xml",            
      "severity": "ERROR",            
      "lineStart": 110,            
      "lineEnd": 111,            
      "columnStart": 210,            
      "columnEnd": 220,            
      "message": "some message",            
      "description": "some description" 
      ...

       

            yashre_bh Shreya
            hsm_ci HSM
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: