@@ -16,7 +16,9 @@ pipeline {
}
stage('Test') {
steps {
- sh 'go test -v ./...'
+ withEnv(["GOROOT=${root}, "PATH+GO=${root}/bin:${HOME}/go/bin"]) {
+ sh "go test -v ./..."
+ }