diff --git a/Jenkinsfile b/Jenkinsfile index 7ba8c26..3bc73e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {