Created
January 22, 2016 16:46
-
-
Save davehunt/2b04f21e618004ed58ea to your computer and use it in GitHub Desktop.
Enable AnsiColor for all Jenkins jobs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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