Timothy J. Warren
27ce51b33f
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
25 lines
449 B
Groovy
25 lines
449 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'golang:latest'
|
|
args '--privileged'
|
|
}
|
|
}
|
|
environment {
|
|
GO114MODULE = 'on'
|
|
CGO_ENABLED = 0
|
|
GOPATH = "${JENKINS_HOME}/workspace/jobs/${JOB_NAME}/builds/${BUILD_ID}"
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh "go build"
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh "go test ./... -v"
|
|
}
|
|
}
|
|
}
|
|
} |