Fix Coverage stage branch check for PR builds
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
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:
1 file changed
+2
-1
Vendored
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user