Skip to content

Instantly share code, notes, and snippets.

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.getBuildWrappersList().add(new hudson.plugins.ansicolor.AnsiColorBuildWrapper("XTerm", 1, 2) )
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.