Add ability to disable report and change testrail plan name prefix
Change-Id: Id87e720046fec6f072339fe64e40bcfa7f3be6d0
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 0434b19..380d46a 100644
--- a/jobs/pipelines/deploy-cicd-and-run-tests.groovy
+++ b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
@@ -98,7 +98,9 @@
archiveArtifacts artifacts: "**/*.xml,**/*.ini,**/*.log,**/*.tar.gz"
}
stage("report results to testrail") {
- shared.swarm_testrail_report(steps)
+ if (env.REPORT_TO_TESTRAIL ?: true) {
+ shared.swarm_testrail_report(steps)
+ }
}
stage("Store TestRail reports to job description") {
def String description = readFile("description.txt")