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

This issue is archived. You can view it, but you can't modify it. Learn more

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" 
      ...

       

            Assignee:
            Shreya
            Reporter:
            HSM
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: