Use tools section for Jenkins

This commit is contained in:
Jan Dittberner 2021-03-07 20:22:06 +01:00
parent 23d586e99d
commit fdc5c5cc61

8
Jenkinsfile vendored
View file

@ -17,12 +17,12 @@ limitations under the License.
pipeline { pipeline {
agent any agent any
def root = tool type: 'go', name: 'Go 1.16' tools {
go "Go 1.16"
}
environment { environment {
GOROOT= "${root}" GO11MODULE = "on"
GOPATH = "${pwd(tmp: true)}/gocode"
PATH = "${root}/bin:${PATH}"
} }
stages { stages {