From a65a65408ad1a8538090b383322cd896561936f3 Mon Sep 17 00:00:00 2001 From: Felipe Vicens Date: Sat, 27 Jun 2020 01:23:16 +0200 Subject: [PATCH] Updating the logs collection from robot tests Change-Id: I27195bd6b38e8f660e26c6db795e74942a371013 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 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' } -- 2.17.1