Pass GERRIT_BRANCH variables to child test job

Related: PROD-29251

Change-Id: I19d10d9c1f0c5d13b9e0e34b0b8bbcff30e359a0
diff --git a/test-salt-formulas-env.groovy b/test-salt-formulas-env.groovy
index e007fe9..f9ff80b 100644
--- a/test-salt-formulas-env.groovy
+++ b/test-salt-formulas-env.groovy
@@ -37,6 +37,7 @@
         stage("checkout") {
           if (defaultGitRef && defaultGitUrl) {
             checkouted = gerrit.gerritPatchsetCheckout(defaultGitUrl, defaultGitRef, "HEAD", CREDENTIALS_ID)
+            env.GERRIT_BRANCH = GERRIT_BRANCH
           } else {
             throw new Exception("Cannot checkout gerrit patchset, DEFAULT_GIT_REF is null")
           }
diff --git a/test-salt-formulas-pipeline.groovy b/test-salt-formulas-pipeline.groovy
index 4326433..68f5db3 100644
--- a/test-salt-formulas-pipeline.groovy
+++ b/test-salt-formulas-pipeline.groovy
@@ -60,6 +60,7 @@
     [$class: 'StringParameterValue', name: 'DEFAULT_GIT_URL', value: defaultGitUrl],
     [$class: 'StringParameterValue', name: 'SALT_OPTS', value: SALT_OPTS],
     [$class: 'StringParameterValue', name: 'SALT_VERSION', value: SALT_VERSION]
+    [$class: 'StringParameterValue', name: 'GERRIT_BRANCH', value: GERRIT_BRANCH]
   ]
 }