go plugin for Jenkins

This commit is contained in:
Dennis Coyle 2018-04-25 14:29:31 -04:00
parent 9f67b25694
commit dcf637a5d7

8
Jenkinsfile vendored
View File

@ -1,4 +1,12 @@
node('node') {
// Install the desired Go version
def root = tool name: 'Go 1.10', type: 'go'
// Export environment variables pointing to the directory where Go was installed
withEnv(["GOROOT=${root}", "PATH+GO=${root}/bin"]) {
sh 'go version'
}
try {
stage 'Checkout'