From: Felipe Vicens Date: Fri, 26 Jun 2020 18:22:34 +0000 (+0200) Subject: Redirecting the logs of robot to a file X-Git-Tag: release-v9.0-start~103 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F9209%2F1;p=osm%2Fdevops.git Redirecting the logs of robot to a file Change-Id: I0f60913b040df80f0a96cd88d485a2f6692ffdc5 Signed-off-by: Felipe Vicens --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index d518cfc6..671482cb 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -102,7 +102,7 @@ def run_robot_systest(stackName,tagName,testName,envfile=null,kubeconfig=null,cl } def archive_logs(stackName) { - sh "docker service ls |grep \"${stackName}\"| awk '{print \$2}'| xargs -iy docker service logs y --timestamps > containers_logs.txt 2>&1" + sh "docker service ls |grep \"${stackName}\"| awk '{print \$2}'| xargs -iy docker service logs y --timestamps &> containers_logs.txt" archiveArtifacts artifacts: 'containers_logs.txt' }