From dc8cbb4ac0d769a4c520c5975df02b5763a7afff Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Mon, 17 Oct 2022 13:26:12 -0400 Subject: [PATCH] GOMODCACHE removed --- Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d2697532d..4e18d9777 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,17 +16,18 @@ pipeline { stage('Test') { agent { docker { - //image 'cerc-io/foundation:jenkinscicd' - image 'cerc-io/foundation_alpine:jenkinscicd' + image 'cerc-io/foundation:jenkinscicd' + //image 'cerc-io/foundation_alpine:jenkinscicd' } } environment { - GO111MODULE = 'on' + GO111MODULE = "on" CGO_ENABLED = 1 //GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}" - GOPATH = "/go" - GOMODCACHE = "/go/pkg/mod" + //GOPATH = "/go" + GOPATH = "/tmp/go" + //GOMODCACHE = "/go/pkg/mod" GOCACHE = "${WORKSPACE}/.cache/go-build" GOENV = "${WORKSPACE}/.config/go/env" //GOMODCACHE = "/tmp/go/pkg/mod" @@ -38,8 +39,10 @@ pipeline { echo 'Testing ...' sh 'env' sh 'go env' - //sh 'go work init . ;go work use .' //https://github.com/golangci/golangci-lint/issues/2654 + //sh '/usr/local/go/bin/go test -p 1 -v ./...' + sh 'cwd' + sh 'which go' sh 'make test' } }