I found it after some Google 
searches: https://github.com/dblock/jenkins-ansicolor-plugin

$ cat cicd/Jenkinsfile 
#!groovy
node {
    wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm', 
'defaultFg': 1, 'defaultBg': 2]) {
        // This is the current syntax for invoking a build wrapper, naming 
the class.
        wrap([$class: 'TimestamperBuildWrapper']) {




On Monday, April 11, 2016 at 4:14:45 PM UTC+2, thomas....@teamaol.com wrote:
>
> Hi,
>
> relating Jenkins 2.x and DSL ...
> You can do a wrap([$class: 'TimestamperBuildWrapper']) { ... } for getting 
> timestamps.
> *Is there also a way to get the ansi color plugin enabled*?
> (https://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin)
>
> Kind Regards,
> Thomas
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d78768f2-7982-4857-ae62-2bcf62ab3f19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to