pipeline { agent { docker { image 'golang:latest' label 'docker-build' } } environment { XDG_CACHE_HOME = '/tmp/.cache' } stages { stage('build') { steps { sh 'go build' } post { success { archiveArtifacts artifacts: 'pnut-bridge', fingerprint: true } } } } }