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

Loading…
Cancel
Save