19 lines
271 B
Groovy
19 lines
271 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'golang:latest'
|
|
}
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh "go build"
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh "go test ./... -v"
|
|
}
|
|
}
|
|
}
|
|
} |