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

Wrong number of new warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pmd-plugin, warnings-plugin
    • Jenkins v. 1.554.2
      PMD Plugin v. 3.38.
      Static Code Analysis Plugins v. 1.58

      Hello.
      I've got a problem with computing new warnings functional.
      When I add a new PMD rule to my ruleset, I get odd results.
      Test case:

      1. Start the first build.
        See summary and full results.
      2. Add a new PMD rule to rule set and start the second build.
        Rule 'LongVariable' was added. The summary contains only 192 new warnings instead of 267 (==3126-2859).
        Moreover, full result contains 267 warning for new 'LongVariable' rule (match against first result).
      3. Go to job configuration, check 'Use delta for new warnings' check box and start the third build.
        The result changed.
        The summary contains both 192 and 267 new warnings on the same page.
        Besides, link '267 new warnings' opens a page with 192 new warnings.
        I suppose that the number of new warning should always be 267 in the example.

        1. build_1_full.png
          56 kB
          Sergey Ryazantsev
        2. build_1_sum.png
          6 kB
          Sergey Ryazantsev
        3. build_2_full.png
          57 kB
          Sergey Ryazantsev
        4. build_2_sum.png
          7 kB
          Sergey Ryazantsev
        5. build_3_full.png
          57 kB
          Sergey Ryazantsev
        6. build_3_sum.png
          7 kB
          Sergey Ryazantsev
        7. new_build_1_sum.png
          6 kB
          Sergey Ryazantsev
        8. new_build_2_new.png
          4 kB
          Sergey Ryazantsev
        9. new_build_2_sum.png
          6 kB
          Sergey Ryazantsev
        10. new_build_3_new.png
          4 kB
          Sergey Ryazantsev
        11. new_build_3_sum.png
          6 kB
          Sergey Ryazantsev
        12. tc_1_log.png
          13 kB
          Sergey Ryazantsev
        13. tc_2_log.png
          14 kB
          Sergey Ryazantsev
        14. tc_3_log.png
          14 kB
          Sergey Ryazantsev

            drulli Ulli Hafner
            xpyctnc Sergey Ryazantsev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: