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