From 04fbc8e3c1437968ffb54498bc2c2ca1e870c665 Mon Sep 17 00:00:00 2001 From: Liu Shilong Date: Wed, 21 Sep 2022 15:50:04 +0800 Subject: [PATCH] [ci] Only when test stage succeeded or succeededwithissues, PR run Gcov (#2460) * [ci] Only when test stage succeeded or succeededwithissues, PR run Gcov --- .azure-pipelines/test-docker-sonic-vs-template.yml | 2 +- azure-pipelines.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index d3f31d6e439b..f4b9636e3c0f 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)/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 166905654e25..3cb2f7b12a62 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: