Fix Coverage stage branch check for PR builds
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit

Use CHANGE_BRANCH for PR builds (BRANCH_NAME is PR-3 in PR context)

Entire-Checkpoint: 7a9bf7a0810d
This commit is contained in:
torsten committed 2026-10-22 19:26:50 +02:00
1 parent 2117e2ff80
commit 4f6b09db3e
1 file changed
+2 -1
Vendored
+2 -1
View File
@@ -106,7 +106,8 @@ pipeline {
stage('Coverage') { stage('Coverage') {
when { when {
expression { expression {
return env.BRANCH_NAME ==~ /main|master|coverage.*|feature.*/ def branch = env.CHANGE_BRANCH ?: env.BRANCH_NAME
return branch ==~ /main|master|coverage.*|feature.*/
} }
} }
steps { steps {