-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
I'd like to enable the color console of maven 3.5.0 on Jenkins (using AnsiColorPlugin).
Currently the pipeline-maven-plugin will force the --batch-mode parameter. As per the documentation: The Maven parameters that are useful on a build server, "--batch-mode" ("-B") and "--show-version" ("-V") are enable by default, no need to add them in your mvn invocations.
This is what maven says about --batch-mode: Run in non-interactive (batch) mode (disables output color)
I understand this is a sensible default behavior to set --batch-mode on Jenkins, however I would appreciate it if there was a way I could override these defaults.
Thanks
- relates to
-
JENKINS-55318 Maven logs are not colorized
-
- Open
-
- links to
[JENKINS-44543] Don't force --batch-mode to benefit of Maven 3.5 colorized output
Description |
Original:
I'd like to enable the color console of maven 3.5.0 on Jenkins (using AnsiColorPlugin). Currently the pipeline-maven-plugin will force the --batch-mode parameter. As per the documentation: The Maven parameters that are useful on a build server, "{{--batch-mode}}" ("{{-B}}") and "{{--show-version}}" ("{{-V}}") are enable by default, no need to add them in your mvn invocations. This is what maven says about --batch-mode: Run in non-interactive (batch) mode (disables output color) I understand this is a sensible default behavior to set --batch-mode on Jenkins, however I would appreciate it if there was a way I could override these defaults. Thanks |
New:
I'd like to enable the color console of maven 3.5.0 on Jenkins (using AnsiColorPlugin). Currently the pipeline-maven-plugin will force the \-\-batch-mode parameter. As per the documentation: The Maven parameters that are useful on a build server, "{{\-\-batch-mode}}" ("{{\-B}}") and "{{--show-version}}" ("{{-V}}") are enable by default, no need to add them in your mvn invocations. This is what maven says about --batch-mode: Run in non-interactive (batch) mode (disables output color) I understand this is a sensible default behavior to set --batch-mode on Jenkins, however I would appreciate it if there was a way I could override these defaults. Thanks |
Assignee | Original: Alvaro Lobato [ alobato ] | New: Cyrille Le Clerc [ cleclerc ] |
Remote Link | New: This issue links to "MNG-6220 Add CLI options to control color output (Web Link)" [ 16929 ] |
Summary | Original: Don't force --batch-mode | New: Don't force --batch-mode to benefit of Maven 3.5 colorized output |
Resolution | New: Won't Do [ 10001 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Link | New: This issue relates to JENKINS-55318 [ JENKINS-55318 ] |