diff --git a/Jenkinsfile b/Jenkinsfile index 6335360..866d58f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -106,7 +106,8 @@ pipeline { stage('Coverage') { when { expression { - return env.BRANCH_NAME ==~ /main|master|coverage.*|feature.*/ + def branch = env.CHANGE_BRANCH ?: env.BRANCH_NAME + return branch ==~ /main|master|coverage.*|feature.*/ } } steps {