Where to put the wrapper for ansiColor Jenkins plugin in Jenkins Pipeline?
I put mine in each stage like this:
stage('Initialize') {
ansiColor('xterm') {
// do stuff
}
}
Able to consolidate config in the options block like so
options {
buildDiscarder(logRotator(numToKeepStr:'10'))
timeout(time: 5, unit: 'MINUTES')
ansiColor('xterm')
}