Skip to content

Commit

Permalink
updated terraformPipeline.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Sep 21, 2023
1 parent 7c9d1dd commit a7d8faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vars/terraformPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ def call (Map args = [
}
anyOf {
// XXX: branch pattern fails to match anything unless part of a multibranch pipeline
branch pattern: "$args.apply_branch_pattern", comparator: "REGEXP"
branch pattern: "$apply_branch_pattern", comparator: "REGEXP"
// which is why we use an expression evaluation here
expression {
(env.GIT_BRANCH =~ ~"$args.apply_branch_pattern").matches()
(env.GIT_BRANCH =~ ~"$apply_branch_pattern").matches()
}
}
}
Expand Down

0 comments on commit a7d8faf

Please sign in to comment.