From fdc5c5cc61a9c74e96521cd6b5e16bb9735a6536 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 7 Mar 2021 20:22:06 +0100 Subject: [PATCH] Use tools section for Jenkins --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {