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

Gradle Plugin incorrectly adds warning text to name of executed Javadoc task on console view

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • gradle-plugin
    • Windows 7 Professional 64-bit
      Jenkins 1.434
      Gradle plugin 1.11

      When using Gradle's Java plugin to generate Javadoc, the task name + any warning text is incorrectly added to the list of executed Gradle tasks. I've attached a screenshot that shows the problem. This makes the console output more difficult to use.

      I suspect this could be a Gradle issue rather than the Jenkins Gradle plugin.

          [JENKINS-12234] Gradle Plugin incorrectly adds warning text to name of executed Javadoc task on console view

          We are also facing this problem on Jenkins 1.484, Windows XP and Gradle plugin 1.20.

          I think it is not a Gradle problem, since the console output contains a line break after the task, if not on Jenkins:

          :compileJava
          C:\Programme\Jenkins\jobs\myjob\workspace\src\main\java\mypackage\MyClass.java:42: warning: non-varargs call of varargs method with inexact argument type for last parameter;
          

          But under Jenkins the console output looks like the following:

          :compileJavaC:\Programme\Jenkins\jobs\myjob\workspace\src\main\java\mypackage\MyClass.java:42: warning: non-varargs call of varargs method with inexact argument type for last parameter;
          

          Internally the HTML code is:

          <b class="gradle-task">compileJavaC:\Programme\Jenkins\jobs\myjob\workspace\src\main\java\mypackage\MyClass.java:42:<a name="gradle-task-1"></a></b>
          

          Is there any solution for this issue?

          Christian Gnüchtel added a comment - We are also facing this problem on Jenkins 1.484, Windows XP and Gradle plugin 1.20. I think it is not a Gradle problem, since the console output contains a line break after the task, if not on Jenkins: :compileJava C:\Programme\Jenkins\jobs\myjob\workspace\src\main\java\mypackage\MyClass.java:42: warning: non-varargs call of varargs method with inexact argument type for last parameter; But under Jenkins the console output looks like the following: :compileJavaC:\Programme\Jenkins\jobs\myjob\workspace\src\main\java\mypackage\MyClass.java:42: warning: non-varargs call of varargs method with inexact argument type for last parameter; Internally the HTML code is: <b class= "gradle-task" > compileJavaC:\Programme\Jenkins\jobs\myjob\workspace\src\main\java\mypackage\MyClass.java:42: <a name= "gradle-task-1" > </a> </b> Is there any solution for this issue?

          Jarek Bochniak added a comment - - edited

          As a workaround you can install Jenkins Simple Theme Plugin https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin and use following CSS snippet:

          #console-outline-body a {
              display: block;
              padding: 5px 0;
              width: 157px;
              word-wrap: break-word;
          }
          

          it will reduce the width of the left column.

          Jarek Bochniak added a comment - - edited As a workaround you can install Jenkins Simple Theme Plugin https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin and use following CSS snippet: #console-outline-body a { display: block; padding: 5px 0; width: 157px; word-wrap: break -word; } it will reduce the width of the left column.

          Too old to reproduce. Please open a new issue if this is still a problem.

          George Simpson added a comment - Too old to reproduce. Please open a new issue if this is still a problem.

            gbois Gregory Boissinot
            stevendick stevendick
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: