38 lines
671 B
Groovy
38 lines
671 B
Groovy
@Library('cadoles') _
|
|
|
|
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile'
|
|
dir 'misc/ci'
|
|
}
|
|
}
|
|
|
|
stages {
|
|
stage('Lint') {
|
|
steps {
|
|
script {
|
|
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
|
|
sh 'make lint'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
script {
|
|
sh 'make test'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
always {
|
|
script {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
}
|