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

25 lines
444 B
Groovy

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