gilo/Jenkinsfile
Timothy J. Warren c5aded1d1c
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:52:34 -04:00

26 lines
438 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"
}
}
}
}