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

Checkstyle errors don't break the build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Trivial Trivial
    • warnings-ng-plugin
    • None
    • Warnings-ng-Plugin 8.1.0

      We use the warnings-ng-plugin to publish the results of our builds.
      We are very strict and errors with priority "high" should break the build.
      Therefor we use this publishIssues (here checkstyle and PMD)

      publishIssues(issues: [checkstyle], failedTotalHigh: 1, ignoreFailedBuilds: true, unstableTotalAll: 1)

      publishIssues(issues: [pmd], failedTotalHigh: 1, ignoreFailedBuilds: true, unstableTotalAll: 1)

       While this works fine for PMD, it does not work for checkstyle, because errors in checkstyles are not classified as "high" but as "error"

            drulli Ulli Hafner
            bish Bukama Marenellin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: