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

Maven logs are not colorized

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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".

        Attachments

          Issue Links

            Activity

            Hide
            cleclerc Cyrille Le Clerc added a comment -

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

            Show
            cleclerc Cyrille Le Clerc added a comment - We will want to use Jesse Glick 's improvement Switching plugin to use ConsoleAnnotator rather than ConsoleNote which requires to bump our requirements on jenkins core to 2.145 .
            Hide
            jglick 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.

            Show
            jglick 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.

              People

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

                Dates

                Created:
                Updated: