Pass TEST_PLAN_NAME_PREFIX parameter to swarm-testrail-report job

Also fix REPORT_TO_TESTRAIL boolean logic

Change-Id: I5235d13059a0faefe33b1a923e18acb584831334
Related-PROD: PROD-28588
diff --git a/jobs/pipelines/deploy-cicd-and-run-tests.groovy b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
index ca52a53..7e26377 100644
--- a/jobs/pipelines/deploy-cicd-and-run-tests.groovy
+++ b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
@@ -97,7 +97,7 @@
         stage("Archive all xml reports") {
             archiveArtifacts artifacts: "**/*.xml,**/*.ini,**/*.log,**/*.tar.gz"
         }
-        if (env.REPORT_TO_TESTRAIL ?: true) {
+        if ("${env.REPORT_TO_TESTRAIL}" == "true") {
             stage("report results to testrail") {
                 shared.swarm_testrail_report(steps)
             }
diff --git a/src/com/mirantis/system_qa/SharedPipeline.groovy b/src/com/mirantis/system_qa/SharedPipeline.groovy
index d50432f..7649bd2 100644
--- a/src/com/mirantis/system_qa/SharedPipeline.groovy
+++ b/src/com/mirantis/system_qa/SharedPipeline.groovy
@@ -297,6 +297,7 @@
                 string(name: 'PARENT_WORKSPACE', value: pwd()),
                 string(name: 'TCP_QA_REFS', value: "${tcp_qa_refs}"),
                 string(name: 'TEMPEST_TEST_SUITE_NAME', value: "${tempest_test_suite_name}"),
+                string(name: 'TEST_PLAN_NAME_PREFIX', value: env.TEST_PLAN_NAME_PREFIX ?: ""),
             ]
         common.printMsg("Start building job 'swarm-testrail-report' with parameters:", "purple")
         common.prettyPrint(parameters)