• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Maven 3.6.0

      The fact that "withMaven(){ ... } }}" uses "{{--batch-mode" disables the colorization of the Maven logs introduced in Maven 3.5.x.

      We should also set "-Dstyle.color=always".

          [JENKINS-55318] Maven logs are not colorized

          Cyrille Le Clerc created issue -
          Cyrille Le Clerc made changes -
          Link New: This issue relates to JENKINS-44543 [ JENKINS-44543 ]
          Cyrille Le Clerc made changes -
          Description Original: The fact that {{withMaven()\{ ... \}}} uses {{--batch-mode}} disables the colorization of the Maven logs introduced in Maven 3.5.x.

          We should also set {{-Dstyle.color=always}}.

          New: The fact that "{{withMaven(){ ... \} }}" uses "{{--batch-mode}}" disables the colorization of the Maven logs introduced in Maven 3.5.x.

          We should also set {{-Dstyle.color=always}}.

          We will want to use jglick's improvement Switching plugin to use ConsoleAnnotator rather than ConsoleNote which requires to bump our requirements on jenkins core to 2.145 .

          Cyrille Le Clerc added a comment - We will want to use jglick 's improvement Switching plugin to use ConsoleAnnotator rather than ConsoleNote which requires to bump our requirements on jenkins core to 2.145 .
          Cyrille Le Clerc made changes -
          Description Original: The fact that "{{withMaven(){ ... \} }}" uses "{{--batch-mode}}" disables the colorization of the Maven logs introduced in Maven 3.5.x.

          We should also set {{-Dstyle.color=always}}.

          New: The fact that "{{withMaven(){ ... \} }}" uses "{{--batch-mode}}" disables the colorization of the Maven logs introduced in Maven 3.5.x.

          We should also set "{{-Dstyle.color=always}}".

          Jesse Glick added a comment -

          Yeah, should suffice to add a dependency on ansicolor and then give Maven the right flag to enable ANSI sequences despite being in batch mode.

          Jesse Glick added a comment - Yeah, should suffice to add a dependency on ansicolor and then give Maven the right flag to enable ANSI sequences despite being in batch mode.
          Arnaud Héritier made changes -
          Assignee Original: Cyrille Le Clerc [ cleclerc ]

            Unassigned Unassigned
            cleclerc Cyrille Le Clerc
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: