• 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

          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 .

          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.

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

              Created:
              Updated: