From 1c27d7df7c26c57193cd0e6cfac1ce76d0c70cb1 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Thu, 6 Oct 2022 17:55:08 -0400 Subject: [PATCH] turn on cgo and dev null GOMOD to match successful github runs --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 21d5e1929..2e67207f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 ...'