Change reporting
Deploy tests results are stored on jenkins master
ADD:
* run reporting from env.NODE - should be master
* instal venv reporting if it is not installed(WR for jenkins master issues)
Change-Id: I13c029b44656017d344d7ae82f36bf09c419e32c
diff --git a/jobs/pipelines/deploy-cicd-and-run-tests.groovy b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
index d0fb64d..e8e88c2 100644
--- a/jobs/pipelines/deploy-cicd-and-run-tests.groovy
+++ b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
@@ -146,6 +146,7 @@
}
if ("${env.REPORT_TO_TESTRAIL}" != "false") {
stage("report results to testrail") {
+ common.printMsg("Running on: " + node_with_reports, "blue")
shared.swarm_testrail_report(steps, node_with_reports)
}
}
@@ -157,8 +158,14 @@
archiveArtifacts artifacts: "**/*.xml,**/*.ini,**/*.log,**/*.tar.gz"
}
if ("${env.REPORT_TO_TESTRAIL}" != "false") {
- stage("report results to testrail") {
- shared.swarm_testrail_report(steps, node_with_reports)
+ stage("report results to testrail from jenkins master") {
+ common.printMsg("Running on: " + node_with_reports, "blue")
+ common.printMsg("Running on: " + env.NODE_NAME, "blue")
+ shared.verbose_sh("""\
+ [ -d /home/jenkins/venv_testrail_reporter ] || virtualenv /home/jenkins/venv_testrail_reporter""", true, false, true)
+ shared.run_cmd("""\
+ . /home/jenkins/venv_testrail_reporter/bin/activate; pip install git+https://github.com/dis-xcom/testrail_reporter -U""")
+ shared.swarm_testrail_report(steps, env.NODE_NAME)
}
stage("Store TestRail reports to job description") {
if (fileExists("jenkins_agent_description.txt")){