Pass GERRIT_BRANCH parameter from gating job to salt-formulas test job
Related: PROD-29251
Change-Id: Ie14c9a80349e14733930135f10074c2eab75fd55
diff --git a/test-salt-formulas-pipeline.groovy b/test-salt-formulas-pipeline.groovy
index f21ab29..640cfed 100644
--- a/test-salt-formulas-pipeline.groovy
+++ b/test-salt-formulas-pipeline.groovy
@@ -20,7 +20,9 @@
gerritBranch = 'master'
if (common.validInputParam('GERRIT_BRANCH')) {
gerritBranch = env.GERRIT_BRANCH
-}
+} else if (common.validInputParam('GATING_GERRIT_BRANCH')) {
+ gerritBranch = env.GATING_GERRIT_BRANCH
+ }
def checkouted = false