pipeline { agent { docker { image 'golang:latest' args '--privileged' } } stages { stage('Build') { steps { sh "go build" } } stage('Test') { steps { sh "go test ./... -v" } } } }