go-proxy/Jenkinsfile
William Petit 56b7434498
All checks were successful
Cadoles/go-proxy/pipeline/head This commit looks good
chore: add jenkinsfile
2023-04-24 20:02:57 +02:00

40 lines
764 B
Groovy

@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()
}
}
}