Return stdout with test results' links
Change-Id: I35d4fe1eafdbf53fcb9b5fc7791967c97155c5c6
diff --git a/src/com/mirantis/system_qa/SharedPipeline.groovy b/src/com/mirantis/system_qa/SharedPipeline.groovy
index efd8d49..98c0252 100644
--- a/src/com/mirantis/system_qa/SharedPipeline.groovy
+++ b/src/com/mirantis/system_qa/SharedPipeline.groovy
@@ -704,11 +704,11 @@
pip install -U ${installRepo}
"""
}
- sh """
+ return sh(script: """
. ${venvPath}/bin/activate
${command}
deactivate
- """
+ """, returnStdout: true)
}
}
@@ -756,7 +756,7 @@
ret.exception = ''
try {
sshagent(credentials: ['maintenance-team-ssh']) {
- withVirtualEnv(
+ ret.stdout = withVirtualEnv(
"venv_testrail_reporter",
"python3.7",
"git+ssh://maintenance-ci-robot@gerrit.mcp.mirantis.com:29418/mcp/testrail-reporter",
@@ -805,7 +805,7 @@
ret.stdout = ''
ret.exception = ''
try {
- withVirtualEnv("venv_testrail_analyzer",
+ ret.stdout = withVirtualEnv("venv_testrail_analyzer",
"python3.7",
"git+https://review.gerrithub.io/ibumarskov/testrail-reporter",
script)