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

Extra logging added to console log on Maven builds and prevent Error-Prone parsing

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • maven-plugin
    • jenkins 2.440.2
      Maven Integration plugin 3.23
      Warnings Plugin 11.2.2
    • 3.24

      We are running (since years) our jenkins installation with an master on Windows server and build agent nodes on Linux. As already reported as JENKINS-55390 the output of the console log can not be parsed by the warnings plugin due to be prefixed by 'garbage extra logging' like
      [pool-1-thread-2 for channel id=140013] WARNING org.apache.maven.plugin.compiler.CompilerMojo - /opt/buildsystem/younameit/workspace/projectname/artifact/src/main/java/ag/itc/TestClass.java:[56,36] [MissingOverride] getThings implements method in AnInterface; expected @Override (see ...
      I found the comment/patch from sgabriel on JENKINS-19396 to be correct:

      "This issue still occur when running master on windows and slaves on linux" and "this can be easily corrected"

      I applied the provided patch (from pull request https://github.com/jenkinsci/maven-plugin/pull/191)  to the source of Maven Integration 3.23 and patched our installation.

      Now the cosole log looks pretty ...
      [WARNING] /opt/buildsystem/bob/workspace/projectname/artifact/src/main/java/ag/itcTestClass.java:[56,36] [MissingOverride] getThings implements method in AnInterface; expected @Override (see ...
       

      ... and the Error-Prone parser works as expected

      It would be nice if the patch/pull request from JENKINS-19396 could be finally integrated in the next release of the Maven Integration.

          [JENKINS-72976] Extra logging added to console log on Maven builds and prevent Error-Prone parsing

          Marco Rothe created issue -
          Marco Rothe made changes -
          Link New: This issue is caused by JENKINS-19396 [ JENKINS-19396 ]
          Marco Rothe made changes -
          Link New: This issue is related to JENKINS-55390 [ JENKINS-55390 ]
          Mark Waite made changes -
          Remote Link New: This issue links to "PR-323 that includes fix and several other changes (Web Link)" [ 29616 ]
          Mark Waite made changes -
          Component/s Original: warnings-ng-plugin [ 24526 ]
          Ulli Hafner made changes -
          Assignee Original: Ulli Hafner [ drulli ]
          Labels New: help-wanted
          Basil Crow made changes -
          Released As New: 3.24
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            marco_rothe Marco Rothe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: