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