2022-06-19 21:50:37 +00:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2023-04-03 14:26:31 +00:00
|
|
|
label 'linux && go-1.19'
|
2022-06-19 21:50:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
timestamps()
|
|
|
|
disableConcurrentBuilds()
|
|
|
|
buildDiscarder(logRotator(
|
|
|
|
numToKeepStr: '10',
|
|
|
|
daysToKeepStr: '30',
|
|
|
|
))
|
|
|
|
}
|
|
|
|
|
|
|
|
environment {
|
|
|
|
GOPATH = "${env.HOME}/go"
|
|
|
|
PATH = "${env.PATH}:${env.GOPATH}/bin"
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Deps') {
|
|
|
|
steps { sh 'make deps' }
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Lint') {
|
|
|
|
steps { sh 'make lint' }
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Test') {
|
|
|
|
steps { sh 'make test-ci' }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always { cleanWs() }
|
|
|
|
}
|
|
|
|
}
|