• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • checkstyle-plugin
    • None
    • Jenkins ver. 1.615
      checkstyle-plugin 3.42
      checkstyle 6.1.1

      I have recognized that suddenly the checkstyle plugin doesn't publish any checkstyle result anymore. It seems that it finds the files "Checkstyle: 0 warnings from 3 analyses.".

      No configuration about the output file of checkstyle.

          [JENKINS-28746] Plugin only publish first result file

          Ulli Hafner added a comment -

          Can you please elaborate?

          Is there a warning in checkstyle-result.xml of Warehouse Parent POM?
          What do you mean with suddenly? Did you change anything in your setup?

          Are there other result files that are not parsed?

          Ulli Hafner added a comment - Can you please elaborate? Is there a warning in checkstyle-result.xml of Warehouse Parent POM? What do you mean with suddenly ? Did you change anything in your setup? Are there other result files that are not parsed?

          C. S. added a comment -

          Thanks for your fast reponse.
          To be honest, I don't know what I can tell you to give more information. I am really confused.

          In my opinion checkstyle-result.xml contains all scanned files and the errors/warnings of the check.
          In my case the file checkstyle-result.xml contains only all scanned files and the console tells me there a X errors.

          Finally I found my mistake ... I did run first checkstyle:checkstyle on the tests resources and run checkstyle:check on main using in both cases the same outputFile.
          I was expecting that checkstyle:check just breaks and don't dump any file.

          That explains the checkstyle-result.xml on Jenkins containing only scanned files from main.

          The real background behind this issue was that Jenkins doesn't load any checkstyle-result.xml any more. I think it was overwritten by the two executions.

          C. S. added a comment - Thanks for your fast reponse. To be honest, I don't know what I can tell you to give more information. I am really confused. In my opinion checkstyle-result.xml contains all scanned files and the errors/warnings of the check. In my case the file checkstyle-result.xml contains only all scanned files and the console tells me there a X errors. Finally I found my mistake ... I did run first checkstyle:checkstyle on the tests resources and run checkstyle:check on main using in both cases the same outputFile. I was expecting that checkstyle:check just breaks and don't dump any file. That explains the checkstyle-result.xml on Jenkins containing only scanned files from main. The real background behind this issue was that Jenkins doesn't load any checkstyle-result.xml any more. I think it was overwritten by the two executions.

            drulli Ulli Hafner
            cschulz C. S.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: