go-proxy/Jenkinsfile

40 lines
764 B
Plaintext
Raw Permalink Normal View History

2023-04-24 20:01:20 +02:00
@Library('cadoles') _
pipeline {
agent {
dockerfile {
label 'docker'
filename 'Dockerfile'
dir 'misc/jenkins'
}
}
stages {
stage('Cancel older jobs') {
steps {
script {
def buildNumber = env.BUILD_NUMBER as int
if (buildNumber > 1) milestone(buildNumber - 1)
milestone(buildNumber)
}
}
}
stage('Run unit tests') {
steps {
script {
sh '''
make test
'''
}
}
}
}
post {
always {
cleanWs()
}
}
}