Skip to content

Commit a135e5a

Browse files
author
Vaughn Dice
authored
Merge pull request #54 from vdice/override-sh-for-color
feat(Jenkinsfile): override 'sh' to enable colorized output
2 parents ab69ef4 + c75aea8 commit a135e5a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ def workdir_linux = { String gopath, dest ->
1919
gopath + workpath_linux_root + "/" + dest
2020
}
2121

22+
def sh = { String cmd ->
23+
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
24+
sh cmd
25+
}
26+
}
27+
2228
node('windows') {
2329
def gopath = pwd() + "\\gopath"
2430
env.GOPATH = gopath

0 commit comments

Comments
 (0)