Skip to content

Commit 2685a37

Browse files
committed
Fixing branches when check
1 parent e0d40d0 commit 2685a37

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev-support/Jenkinsfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,9 @@ pipeline {
633633

634634
stage ('yetus jdk17 hadoop3 checks') {
635635
when {
636-
branch 'master'
637-
branch 'branch-3'
636+
anyOf {
637+
branch 'master';branch 'branch-3'
638+
}
638639
}
639640
agent {
640641
node {

dev-support/Jenkinsfile_GitHub

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,9 @@ pipeline {
493493
SKIP_ERRORPRONE = true
494494
}
495495
when {
496-
branch 'master'
497-
branch 'branch-3'
496+
anyOf {
497+
branch 'master';branch 'branch-3'
498+
}
498499
// this will return true if the pipeline is building a change request, such as a GitHub pull request.
499500
changeRequest()
500501
}

0 commit comments

Comments
 (0)