1
0
Fork 0
gilo/Jenkinsfile

20 lines
298 B
Groovy

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