Skip to content

Commit

Permalink
feat(Jenkinsfile): override 'sh' to add colorized output
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaughn Dice committed Jul 26, 2016
1 parent 44f5085 commit 5e78fc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ def workdir_linux = { String gopath ->
gopath + workpath_linux
}

def sh = { String cmd ->
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
sh cmd
}
}

node('windows') {
def gopath = pwd() + "\\gopath"
env.GOPATH = gopath
Expand Down

0 comments on commit 5e78fc4

Please sign in to comment.