diff --git a/Jenkinsfile b/Jenkinsfile index 1adc3cb74..d15f77fe4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'