Add removing xml duplicates in jenkins-slave
Related-Prod:PROD-36500
Change-Id: I81c264f943810966d55481d082902d6b8a2f4688
diff --git a/jobs/pipelines/deploy-cicd-and-run-tests.groovy b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
index 5b4c174..172583e 100644
--- a/jobs/pipelines/deploy-cicd-and-run-tests.groovy
+++ b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
@@ -166,6 +166,13 @@
archiveArtifacts artifacts: "**/*.xml,**/*.ini,**/*.log,**/*.tar.gz"
}
}
+ // delete directory with artifacts from swarm-run-pytest pipeline
+ // for excluding xml duplicates
+ if (fileExists("tmp")) {
+ shared.run_cmd("""\
+ rm -rf tmp/
+ """)
+ }
if ("${env.REPORT_TO_TESTRAIL}" != "false") {
stage("report results to testrail from jenkins master") {