• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None
    • 5.0.0 (analysis-model and warnings-ng)

      I tried to set the health report level to

       

      healthy: 0 unhealthy: 1

      this  causes an error, that both healthy and unhealthy should be set.

      (guess : code needs to discriminiate between NULL/unset and 0/zero.)

          [JENKINS-55293] Unable to set healthy levels to 0

          Björn Pedersen created issue -

          Ulli Hafner added a comment -

          0 is an invalid value. The first valid value is 1 because I compare with < and >. I think I need to improve the error message.

          Ulli Hafner added a comment - 0 is an invalid value. The first valid value is 1 because I compare with < and >. I think I need to improve the error message.
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Ulli Hafner made changes -
          Released As New: warnings-ng 1.0.1
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

          When setting it to healthy=1, I get 100% health when having exactly one issue. If "<" is used, I don't understand why I get 100%

          unhealthy=5 in this environment

          Christian Treczoks added a comment - When setting it to healthy=1, I get 100% health when having exactly one issue. If "<" is used, I don't understand why I get 100% unhealthy=5 in this environment
          Christian Treczoks made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Ulli Hafner added a comment - - edited

          christiantreczoks your attachment is broken. What values did you specify for healthy and unhealthy?

          Ulli Hafner added a comment - - edited christiantreczoks your attachment is broken. What values did you specify for healthy and unhealthy ?
          Christian Treczoks made changes -
          Attachment New: image-2019-04-17-14-23-55-132.png [ 46803 ]
          Christian Treczoks made changes -
          Attachment New: image-2019-04-17-14-24-37-482.png [ 46804 ]

          my settings: healthy: 1, minimumSeverity: 'NORMAL', unhealthy: 5

          and I get the following result:

          My expectation is: 80% for "Unused Functions"

          P.S.: I use the groovy based custom parser and the latest Warning-NG-Version (4.0.0)

          Christian Treczoks added a comment - my settings: healthy: 1, minimumSeverity: 'NORMAL', unhealthy: 5 and I get the following result: My expectation is: 80% for "Unused Functions" P.S.: I use the groovy based custom parser and the latest Warning-NG-Version (4.0.0)

            drulli Ulli Hafner
            pedersen Björn Pedersen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: