From: Felipe Vicens Date: Fri, 26 Jun 2020 12:34:26 +0000 (+0200) Subject: Fix ci_stage_3 logs creation for robot tests X-Git-Tag: release-v9.0-start~106 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c889e12242099c0b78939af8986308940aab9ad1;p=osm%2Fdevops.git Fix ci_stage_3 logs creation for robot tests Change-Id: Ic09adc5d5e71d250ea1bb84c84ae6ea0d35f0ed0 Signed-off-by: Felipe Vicens --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index b35e0276..6c034e28 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -102,9 +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 -i% docker service logs "%" --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 2>&1" archiveArtifacts artifacts: 'containers_logs.txt' }