turn on cgo and dev null GOMOD to match successful github runs

This commit is contained in:
Michael Shaw
2022-10-06 17:55:08 -04:00
parent 5839fd1caa
commit 1c27d7df7c
Vendored
+3 -1
View File
@@ -22,11 +22,13 @@ pipeline {
}
environment {
GO111MODULE = 'on'
CGO_ENABLED = 0
CGO_ENABLED = 1
GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
GOMODCACHE = "${WORKSPACE}/pkg/mod"
GOCACHE = "${WORKSPACE}/.cache/go-build"
GOENV = "${WORKSPACE}/.config/go/env"
GOMOD="/dev/null"
}
steps {
echo 'Testing ...'