Timothy J. Warren
c5aded1d1c
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
26 lines
438 B
Groovy
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"
|
|
}
|
|
}
|
|
}
|
|
} |