From 7ce2be8d2ed706c5e50571674b26e2d1e406c2a9 Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Tue, 20 Sep 2022 16:06:23 +0800 Subject: [PATCH 1/2] [ci] Only when test stage succeeded or succeededwithissues, PR run Gcov --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 166905654e2..3cb2f7b12a6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -101,7 +101,7 @@ stages: - stage: Gcov dependsOn: Test - condition: always() + condition: in(dependencies.Test.result, 'Succeeded', 'SucceededWithIssues') jobs: - template: .azure-pipelines/gcov.yml parameters: From 4085c618844a9b90f5a4035b3aea567eda253887 Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Tue, 20 Sep 2022 17:04:31 +0800 Subject: [PATCH 2/2] fix --- .azure-pipelines/test-docker-sonic-vs-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index d3f31d6e439..f4b9636e3c0 100644 --- a/.azure-pipelines/test-docker-sonic-vs-template.yml +++ b/.azure-pipelines/test-docker-sonic-vs-template.yml @@ -107,7 +107,7 @@ jobs: inputs: testResultsFiles: '**/*_tr.xml' testRunTitle: vstest - condition: always() + condition: succeeded() - script: | cp -r tests/log $(Build.ArtifactStagingDirectory)/