Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable AnsiColor for all Jenkins jobs
import hudson.model.*
import hudson.maven.*
import hudson.tasks.*
for(item in Hudson.instance.items) {
println("job $item.name")
item.getBuildWrappersList().add(new hudson.plugins.ansicolor.AnsiColorBuildWrapper("XTerm", 1, 2) )
item.save()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.