go plugin for Jenkins
This commit is contained in:
parent
9f67b25694
commit
dcf637a5d7
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user