Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-880

Log format breaks analysis plugins for maven Builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 3 - High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Maven2, Maven3
    • Labels:
      None
    • Environment:

      Jenkins 2.32.1
      Artifactory Plugin 2.9.0
      Warning Plugin 4.59
      Maven 3.3.9

      Description

      The console output issued from artifactory maven builder differs from the maven output on the command line (different format):

      With Artifactory Maven Builder:

      {{[main] INFO org.codehaus.plexus.compiler.javac.JavacCompiler - Compiling 4 source files to /data/jenkins.bktest.dummy.de/workspace/git.bk.datev.de/jenkins-tests/compile-jar-compiler-warnings/target/classes
      [main] WARN org.apache.maven.plugin.compiler.CompilerMojo - /data/jenkins.bktest.dummy.de/workspace/git.bk.datev.de/jenkins-tests/compile-jar-compiler-warnings/src/main/java/de/datev/build/test/ClassUsingDeprecatedMethod.java:[9,12] [deprecation] deprecatedDoNothing() in ClassWithDeprecatedMethod has been deprecated
      [main] WARN org.apache.maven.plugin.compiler.CompilerMojo - /data/jenkins.bktest.dummy.de/workspace/git.bk.datev.de/jenkins-tests/compile-jar-compiler-warnings/src/main/java/de/datev/build/test/RedundantCastToString.java:[9,21] [cast] redundant cast to String [main] WARN org.apache.maven.plugin.compiler.CompilerMojo - /data/jenkins.bktest.dummy.de/workspace/git.bk.datev.de/jenkins-tests/compile-jar-compiler-warnings/src/main/java/de/datev/build/test/EmptyBlock.java:[9,18] [empty] empty statement after if }}

      Without:
      {{
      [INFO] Compiling 4 source files to D:\Users\t06636a\IdeaProjects\jenkins-tests\compile-jar-compiler-warnings\target\classes
      [WARNING] D:\Users\t06636a\IdeaProjects\jenkins-tests\compile-jar-compiler-warnings\src\main\java\de\datev\build\test\RedundantCastToString.java:[9,21] Warnung: [cast] redundante Umsetzung in String
      [WARNING] D:\Users\t06636a\IdeaProjects\jenkins-tests\compile-jar-compiler-warnings\src\main\java\de\datev\build\test\ClassUsingDeprecatedMethod.java:[9,12] Warnung: [deprecation] deprecatedDoNothing() in ClassWithDeprecatedMethod ist veraltet
      [WARNING] D:\Users\t06636a\IdeaProjects\jenkins-tests\compile-jar-compiler-warnings\src\main\java\de\datev\build\test\EmptyBlock.java:[9,18] Warnung: [empty] leere Anweisung nach 'if'
      }}

      This breaks compatibility with plugins analyzing the console output, like the warnings plugin https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin

        Attachments

          Activity

            People

            Assignee:
            eyalbe Eyal Ben David
            Reporter:
            MartinKutter Martin Kutter
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: