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

Warnings Plugin wants "Error" but JCReport apparently writes "error"

        [JENKINS-48720] Warnings Plugin wants "Error" but JCReport apparently writes "error"

        Tobias Redl added a comment -

        drulli maybe a good way to go would be to use 

        issueLevel.toLowerCase()...
        

        then, isn't it?

        Or is there a special reason to check just for the capitalized words?

        Tobias Redl added a comment - drulli  maybe a good way to go would be to use  issueLevel.toLowerCase()... then, isn't it? Or is there a special reason to check just for the capitalized words?

        Ulli Hafner added a comment -

        I think it would be even simpler to use ´Severity.guessFromString´ if possible. That will change the severity of some issues to ˋERRORˋ but that is ok.

        Ulli Hafner added a comment - I think it would be even simpler to use ´Severity.guessFromString´ if possible. That will change the severity of some issues to ˋERRORˋ but that is ok.

        Tobias Redl added a comment -

        Oh, I just saw, that this was a problem in the old warnings-plugin. As far as I can see this should not be a problem in warnings-ng.

        Tobias Redl added a comment - Oh, I just saw, that this was a problem in the old warnings-plugin. As far as I can see this should not be a problem in warnings-ng.

        Ulli Hafner added a comment -

        Ulli Hafner added a comment - You are right, this already has been fixed quite some time ago: https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/jcreport/JcReportParser.java#L39 .

          redto Tobias Redl
          kon Kalle Niemitalo
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated:
            Resolved: