From f4fae40a27390b16c88ca991358c62278f1c4d47 Mon Sep 17 00:00:00 2001 From: Felipe Vicens Date: Fri, 26 Jun 2020 20:22:34 +0200 Subject: [PATCH] Redirecting the logs of robot to a file Change-Id: I0f60913b040df80f0a96cd88d485a2f6692ffdc5 Signed-off-by: Felipe Vicens --- jenkins/ci-pipelines/ci_stage_3.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' } -- 2.25.1