gilo/Jenkinsfile
Timothy J. Warren 27ce51b33f
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
Make it so Jenkins can actually build
2021-03-30 20:59:21 -04:00

25 lines
449 B
Groovy

pipeline {
agent {
docker {
image 'golang:latest'
args '--privileged'
}
}
environment {
GO114MODULE = 'on'
CGO_ENABLED = 0
GOPATH = "${JENKINS_HOME}/workspace/jobs/${JOB_NAME}/builds/${BUILD_ID}"
}
stages {
stage('Build') {
steps {
sh "go build"
}
}
stage('Test') {
steps {
sh "go test ./... -v"
}
}
}
}