build job as GOPATH

This commit is contained in:
Michael Shaw
2022-10-07 09:37:13 -04:00
parent 9448d12845
commit f7b0b336ae
Vendored
+2 -1
View File
@@ -23,7 +23,7 @@ pipeline {
environment {
GO111MODULE = 'on'
CGO_ENABLED = 1
GOPATH = "${WORKSPACE}"
GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
GOMODCACHE = "${WORKSPACE}/pkg/mod"
GOCACHE = "${WORKSPACE}/.cache/go-build"
GOENV = "${WORKSPACE}/.config/go/env"
@@ -34,6 +34,7 @@ pipeline {
echo 'Testing ...'
sh 'env'
sh 'go env'
sh 'ls -tla'
sh 'make test'
}
}