From f7b0b336aee10364d6f338d2db1c490f8986ce4b Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Fri, 7 Oct 2022 09:37:13 -0400 Subject: [PATCH] build job as GOPATH --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7ec2b9c73..d39c81752 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } }