allow go modules auto loading
All checks were successful
ci-tests/golang-test/pipeline/head This commit looks good

This commit is contained in:
2022-02-06 10:54:35 +02:00
parent 46a9423b8a
commit 2505e83019

4
Jenkinsfile vendored
View File

@@ -1,13 +1,13 @@
/* Requires the Docker Pipeline plugin */ /* Requires the Docker Pipeline plugin */
/* Scripted pipeline */ /* Scripted pipeline */
def enVars = '-e XDG_CACHE_HOME="/tmp" -e CGO_ENABLED=0 -e GOCACHE="/tmp/.cache"' def enVars = '-e XDG_CACHE_HOME="/tmp" -e CGO_ENABLED=0 -e GOCACHE="/tmp/.cache" -e GO111MODULE=auto'
node { node {
checkout scm checkout scm
stage('Build') { stage('Build') {
docker.image('golang').inside(enVars) { docker.image('golang').inside(enVars) {
sh 'go version'
sh 'mkdir -pv ${GOCACHE}' sh 'mkdir -pv ${GOCACHE}'
sh 'go version'
sh 'go test -v -short' sh 'go test -v -short'
} }
} }