From a7d8faff92c3131211eb22d5ca6825cbb297d184 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Thu, 21 Sep 2023 17:58:10 +0100 Subject: [PATCH] updated terraformPipeline.groovy --- vars/terraformPipeline.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/terraformPipeline.groovy b/vars/terraformPipeline.groovy index 2e45efa0..0f52a5b7 100644 --- a/vars/terraformPipeline.groovy +++ b/vars/terraformPipeline.groovy @@ -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() } } }