From: Felipe Vicens Date: Fri, 26 Jun 2020 23:23:16 +0000 (+0200) Subject: Updating the logs collection from robot tests X-Git-Tag: release-v9.0-start~101 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=a65a65408ad1a8538090b383322cd896561936f3;p=osm%2Fdevops.git Updating the logs collection from robot tests Change-Id: I27195bd6b38e8f660e26c6db795e74942a371013 Signed-off-by: Felipe Vicens --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index f4eaa10b..0428fa1e 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 ps -af name=y --format \"{{.ID}} {{.Names}}\" --no-trunc | awk '{ print \"sudo cp /var/lib/docker/containers/\"\$1\"/\"\$1\"-json.log \"\$2\".log\"}' | xargs -iy bash y " + sh "docker service ls |grep \"${stackName}\"| awk '{print \$2}' | xargs -iy docker ps -af name=y --format \"{{.ID}} {{.Names}}\" --no-trunc | awk '{ print \"sudo cp /var/lib/docker/containers/\"\$1\"/\"\$1\"-json.log \"\$2\".log\"}' | xargs -iy bash -c y" sh "sudo chown jenkins: osm*.log" archiveArtifacts artifacts: '*.log' }