Always update reporter tool in swarm-testrail-report
Change-Id: Idbf9a802b03a1cf6f79433269eac76b8f3aa7484
diff --git a/jobs/pipelines/swarm-testrail-report.groovy b/jobs/pipelines/swarm-testrail-report.groovy
index 0c70353..1736c62 100644
--- a/jobs/pipelines/swarm-testrail-report.groovy
+++ b/jobs/pipelines/swarm-testrail-report.groovy
@@ -78,6 +78,14 @@
common.printMsg(stacklight_report_name ? "Found stacklight-pytest report: ${stacklight_report_name}" : "stacklight-pytest report not found", stacklight_report_name ? "blue" : "red")
common.printMsg(cvp_sanity_report_name ? "Found CVP Sanity report: ${cvp_sanity_report_name}" : "CVP Sanity report not found", cvp_sanity_report_name ? "blue" : "red")
+ stage("Prepare/update venv for reporter tool"){
+ sshagent(credentials: ['maintenance-team-ssh']) {
+ shared.run_cmd("""\
+ . /home/jenkins/venv_testrail_reporter/bin/activate;
+ pip install git+ssh://maintenance-ci-robot@gerrit.mcp.mirantis.com:29418/mcp/testrail-reporter -U;
+ pip install --force-reinstall --no-deps git+ssh://maintenance-ci-robot@gerrit.mcp.mirantis.com:29418/mcp/testrail-reporter;""")
+ }
+ }
if (deployment_report_name) {
stage("Deployment report") {