• Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • warnings-plugin
    • None
    • Jenkins 2.7
      Gradle 2.13
      Ubuntu Server 14.04

      Currently, Jenkins' warnings plugin (Java Parser) has issues with parsing Gradle's javac output.

      The issue can be connected to GRADLE-1230

      The latest version of gradle can generate

      :xxx-state:xxx-yyy:compileTestJava/home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
              Class<? extends StateStore> storeClass =
                              ^
        missing type arguments for generic class StateStore<T>
        where T is a type-variable:
          T extends State declared in interface StateStore
      1 warning
      

      As you can see the name of the phase and name of the file are glued with each other compileTestJava/home/

      Please also notice, that compiler warnings are written to stderr, although gradle's output is written to stdout, so stderr may interleave stdout incorrectly.

      Here is gradle's stderr

      /home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
              Class<? extends StateStore> storeClass =
                              ^
        missing type arguments for generic class StateStore<T>
        where T is a type-variable:
          T extends State declared in interface StateStore
      1 warning
      

      and here is corresponding stdout

      :xxx-state:xxx-yyy:compileTestJava
      

          [JENKINS-35373] Javac in Gradle uses multi-line messages

          Sergey Zhemzhitsky created issue -
          Ulli Hafner made changes -
          Description Original: Currently, Jenkins' warnings plugin has issues with parsing Gradle's output.

          The issue can be connected to [GRADLE-1230|https://issues.gradle.org/browse/GRADLE-1230]

          The latest version of gradle can generate
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava/home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          As you can see the name of the phase and name of the file are glued with each other *compileTestJava/home/*

          Please also notice, that compiler warnings are written to stderr, although gradle's output is written to stdout, so stderr may interleave stdout incorrectly.

          Here is gradle's stderr
          {code:none}
          /home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          and here is corresponding stdout
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava
          {code}
          New: Currently, Jenkins' warnings plugin has issues with parsing Gradle's javac output.

          The issue can be connected to [GRADLE-1230|https://issues.gradle.org/browse/GRADLE-1230]

          The latest version of gradle can generate
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava/home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          As you can see the name of the phase and name of the file are glued with each other *compileTestJava/home/*

          Please also notice, that compiler warnings are written to stderr, although gradle's output is written to stdout, so stderr may interleave stdout incorrectly.

          Here is gradle's stderr
          {code:none}
          /home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          and here is corresponding stdout
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava
          {code}
          Summary Original: Warnings Plugin unable to parse Gradle output New: Javac Parser in Gradle uses multi-line messages
          Ulli Hafner made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Ulli Hafner made changes -
          Description Original: Currently, Jenkins' warnings plugin has issues with parsing Gradle's javac output.

          The issue can be connected to [GRADLE-1230|https://issues.gradle.org/browse/GRADLE-1230]

          The latest version of gradle can generate
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava/home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          As you can see the name of the phase and name of the file are glued with each other *compileTestJava/home/*

          Please also notice, that compiler warnings are written to stderr, although gradle's output is written to stdout, so stderr may interleave stdout incorrectly.

          Here is gradle's stderr
          {code:none}
          /home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          and here is corresponding stdout
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava
          {code}
          New: Currently, Jenkins' warnings plugin (Java Parser) has issues with parsing Gradle's javac output.

          The issue can be connected to [GRADLE-1230|https://issues.gradle.org/browse/GRADLE-1230]

          The latest version of gradle can generate
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava/home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          As you can see the name of the phase and name of the file are glued with each other *compileTestJava/home/*

          Please also notice, that compiler warnings are written to stderr, although gradle's output is written to stdout, so stderr may interleave stdout incorrectly.

          Here is gradle's stderr
          {code:none}
          /home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
                  Class<? extends StateStore> storeClass =
                                  ^
            missing type arguments for generic class StateStore<T>
            where T is a type-variable:
              T extends State declared in interface StateStore
          1 warning
          {code}

          and here is corresponding stdout
          {code:none}
          :xxx-state:xxx-yyy:compileTestJava
          {code}
          Summary Original: Javac Parser in Gradle uses multi-line messages New: Javac in Gradle uses multi-line messages
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 171664 ] New: JNJira + In-Review [ 184393 ]
          Ulli Hafner made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            drulli Ulli Hafner
            szhem Sergey Zhemzhitsky
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: