Skip to content

Commit 5e78fc4

Browse files
author
Vaughn Dice
committed
feat(Jenkinsfile): override 'sh' to add colorized output
1 parent 44f5085 commit 5e78fc4

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)