Skip to content

Commit c75aea8

Browse files
author
Vaughn Dice
committed
feat(Jenkinsfile): override 'sh' to enable colorized output
ref deis/workflow-cli#152
1 parent 5745c39 commit c75aea8

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
@@ -10,6 +10,12 @@ def workdir_linux = { String gopath, dest ->
1010
gopath + workpath_linux_root + "/" + dest
1111
}
1212

13+
def sh = { String cmd ->
14+
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
15+
sh cmd
16+
}
17+
}
18+
1319
node('windows') {
1420
def gopath = pwd() + "\\gopath"
1521
env.GOPATH = gopath

0 commit comments

Comments
 (0)