gilo/Jenkinsfile
Timothy J. Warren 2c5eaa3291
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:51:08 -04:00

26 lines
440 B
Groovy

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