From dffd76a857e74321917080d75e62568ff3a480e3 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Wed, 28 Jun 2023 15:36:50 +0800 Subject: [PATCH] [Ci] Fix collect log error in azp template (#799) --- .azure-pipelines/test-docker-sonic-vs-template.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index b8e65b7f1..8eb3ea533 100644 --- a/.azure-pipelines/test-docker-sonic-vs-template.yml +++ b/.azure-pipelines/test-docker-sonic-vs-template.yml @@ -97,7 +97,9 @@ jobs: condition: always() - script: | - cp -r sonic-swss/tests/log $(Build.ArtifactStagingDirectory)/ + if [ -d sonic-swss/tests/log ]; then + cp -r sonic-swss/tests/log $(Build.ArtifactStagingDirectory)/ + fi displayName: "Collect logs" condition: always()