Add ability to disable report and change testrail plan name prefi
Change-Id: Ib97bc66ed229292bebc69348d316dee2bd6956ce
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..ca52a53 100644
--- a/jobs/pipelines/deploy-cicd-and-run-tests.groovy
+++ b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
@@ -97,14 +97,15 @@
stage("Archive all xml reports") {
archiveArtifacts artifacts: "**/*.xml,**/*.ini,**/*.log,**/*.tar.gz"
}
- stage("report results to testrail") {
- shared.swarm_testrail_report(steps)
+ if (env.REPORT_TO_TESTRAIL ?: true) {
+ stage("report results to testrail") {
+ shared.swarm_testrail_report(steps)
+ }
+ stage("Store TestRail reports to job description") {
+ def String description = readFile("description.txt")
+ currentBuild.description += "\n${description}"
+ }
}
- stage("Store TestRail reports to job description") {
- def String description = readFile("description.txt")
- currentBuild.description += "\n${description}"
- }
-
}
}
//}
\ No newline at end of file