[fix][core] use global vars for getting job info

us: PRODX-5418
Change-Id: I8d92a3f45912743e5c0d4349cf64fd78cc2bf42f
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index b6dc191..0a25b78 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -221,7 +221,7 @@
     jobs["kaas-core-openstack-patched-${component}"] = {
         try {
             common.infoMsg('Deploy: patched KaaS demo with Openstack provider')
-            def job_info = build job: "kaas-testing-core-openstack-workflow-${component}", parameters: parameters, wait: true
+            job_info = build job: "kaas-testing-core-openstack-workflow-${component}", parameters: parameters, wait: true
             def build_description = job_info.getDescription()
             if (build_description) {
                 currentBuild.description += build_description
@@ -236,7 +236,7 @@
         jobs["kaas-core-aws-patched-${component}"] = {
             try {
                 common.infoMsg('Deploy: patched KaaS demo with AWS provider')
-                def job_info = build job: "kaas-testing-core-aws-workflow-${component}", parameters: parameters, wait: true
+                job_info = build job: "kaas-testing-core-aws-workflow-${component}", parameters: parameters, wait: true
                 def build_description = job_info.getDescription()
                 if (build_description) {
                     currentBuild.description += build_description