Skip to content

Commit 76b60b5

Browse files
author
Vaughn Dice
authored
Merge pull request #152 from vdice/override-sh-to-add-color
feat(Jenkinsfile): override 'sh' to add colorized output
2 parents 44f5085 + 5e78fc4 commit 76b60b5

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
@@ -24,6 +24,12 @@ def workdir_linux = { String gopath ->
2424
gopath + workpath_linux
2525
}
2626

27+
def sh = { String cmd ->
28+
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
29+
sh cmd
30+
}
31+
}
32+
2733
node('windows') {
2834
def gopath = pwd() + "\\gopath"
2935
env.GOPATH = gopath

0 commit comments

Comments
 (0)