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