All checks were successful
ci-tests/environmentvars-test/pipeline/head This commit looks good
environmentvars-test
Environmentvars-test To test all available environment variables for jenkins
Declared pipeline - easy and default
This is the default and jenkins prefared pipeline:
pipeline {
agent { docker { image 'golang:1.15-alpine'
args '-e XDG_CACHE_HOME="/tmp" -e CGO_ENABLED=0 -e GOCACHE="/tmp/.cache"'}
}
// your pipeline
}
Scripted pipeline
Always starts with node. Requires the Docker Pipeline plugin to be installed:
node {
docker.image('golang:1.15-alpine').inside('-e XDG_CACHE_HOME="/tmp" -e CGO_ENABLED=0 -e GOCACHE="/tmp/.cache"') {
// your pipeline
}
}
More info from github jenkins
Description