Use tools section for Jenkins

main
Jan Dittberner 3 years ago
parent 23d586e99d
commit fdc5c5cc61

8
Jenkinsfile vendored

@ -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 {

Loading…
Cancel
Save