All checks were successful
ci-tests/golang-test/pipeline/head This commit looks good
15 lines
360 B
Groovy
15 lines
360 B
Groovy
/* Requires the Docker Pipeline plugin */
|
|
/* Scripted pipeline */
|
|
def enVars = '-e XDG_CACHE_HOME="/tmp" -e CGO_ENABLED=0 -e GOCACHE="/tmp/.cache" -e GO111MODULE=auto'
|
|
|
|
node {
|
|
checkout scm
|
|
stage('Build') {
|
|
docker.image('golang').inside(enVars) {
|
|
sh 'mkdir -pv ${GOCACHE}'
|
|
sh 'go version'
|
|
sh 'go test -v -short'
|
|
}
|
|
}
|
|
}
|