chore(jenkins): cancel older jobs
arcad/emissary/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-04-06 15:12:06 +02:00
parent 9a46c9d3d0
commit 9dcddc5566
1 changed files with 10 additions and 0 deletions

10
Jenkinsfile vendored
View File

@ -10,6 +10,16 @@ pipeline {
}
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 {