Skip to content

Commit

Permalink
chore(ci): Feature branch should be checked against CURRENT_BRANCH
Browse files Browse the repository at this point in the history
The feature build is getting confused in certain situations, possibly
having to do with multiple merge commits from upgrades and pulling
changes from master.

Ref: LOG-18882
  • Loading branch information
darinspivey committed Jan 3, 2024
1 parent d217387 commit 4742c2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ pipeline {
}
stage('Feature build and publish') {
when {
branch pattern: "(feature\\/LOG-\\d+)", comparator: "REGEXP"
expression {
CURRENT_BRANCH ==~ /feature\/LOG-\d+/
}
}
steps {
script {
Expand Down

0 comments on commit 4742c2f

Please sign in to comment.