Add ansiColor as an option
See original GitHub issueInstead of wrapping each of the stage() { steps { } } of my Jenkinsfile pipeline with ansiColor('xterm'), is it possible to declare it as a pipeline options https://jenkins.io/doc/book/pipeline/syntax/#options ?
I’m aware that this might require a change deep within Jenkins core, and out of the control of this plugin.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:29
- Comments:13 (2 by maintainers)
Top Results From Across the Web
AnsiColor | Jenkins plugin
This plugin adds support for standard ANSI escape sequences, including color, to Console Output. This plugin is available here and has a page...
Read more >Where to put the wrapper for ansiColor Jenkins plugin in ...
I put this in options section, apply for all stages and steps in pipeline pipeline { agent any options ...
Read more >Ansi color in jenkins pipelines | Lzone Blog
In all cases ensure you have the ansi-color plugin installed. In Declarative Pipelines. You need to add an option for ansiColor().
Read more >[#MNG-6220] Add CLI options to control color output - ASF JIRA
If a user wants colored output but no interactivity (ie: jenkins environment with the ansicolor plugin), there is no CLI option combination ...
Read more >Term::ANSIColor - Color screen output using ANSI escape ...
The most conservative choice is to use only the regular colors, ... colorstrip() was added in Term::ANSIColor 2.01 and colorvalid() was added in ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

For me
ansiColor('xterm')is working as an option. But I had to add some additional Maven configuration in order to get colored Maven output:I would like also to confirm that
works. Having this example on:
would be great.
If I’m right then
🙂