From bf7dbde05e198e4932d7ad4646b6589f9cd5239b Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Tue, 27 Oct 2020 15:35:28 -0700 Subject: [PATCH] [vcpkg] Always publish failure logs, even on success. (#14260) This way we get failure logs for things excluded by ci.baseline.txt in the nightly builds. --- scripts/azure-pipelines/linux/azure-pipelines.yml | 2 +- scripts/azure-pipelines/osx/azure-pipelines.yml | 2 +- scripts/azure-pipelines/windows-unstable/job.yml | 2 +- scripts/azure-pipelines/windows/azure-pipelines.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/azure-pipelines/linux/azure-pipelines.yml b/scripts/azure-pipelines/linux/azure-pipelines.yml index 36b28f029a..d7bd09fe2a 100644 --- a/scripts/azure-pipelines/linux/azure-pipelines.yml +++ b/scripts/azure-pipelines/linux/azure-pipelines.yml @@ -51,7 +51,7 @@ jobs: inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs' ArtifactName: 'failure logs for x64-linux' - condition: failed() + condition: always() - bash: | python3 scripts/file_script.py /mnt/vcpkg-ci/installed/vcpkg/info/ displayName: 'Build a file list for all packages' diff --git a/scripts/azure-pipelines/osx/azure-pipelines.yml b/scripts/azure-pipelines/osx/azure-pipelines.yml index d3229f83cd..6f2e90fec0 100644 --- a/scripts/azure-pipelines/osx/azure-pipelines.yml +++ b/scripts/azure-pipelines/osx/azure-pipelines.yml @@ -50,7 +50,7 @@ jobs: inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs' ArtifactName: 'failure logs for x64-osx' - condition: failed() + condition: always() - bash: | python3 scripts/file_script.py /Users/vagrant/Data/installed/vcpkg/info/ displayName: 'Build a file list for all packages' diff --git a/scripts/azure-pipelines/windows-unstable/job.yml b/scripts/azure-pipelines/windows-unstable/job.yml index c2eced1795..0907ca6d94 100644 --- a/scripts/azure-pipelines/windows-unstable/job.yml +++ b/scripts/azure-pipelines/windows-unstable/job.yml @@ -87,4 +87,4 @@ jobs: inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)\failure-logs' ArtifactName: 'failure logs for ${{ parameters.triplet }}' - condition: failed() + condition: always() diff --git a/scripts/azure-pipelines/windows/azure-pipelines.yml b/scripts/azure-pipelines/windows/azure-pipelines.yml index 34916a09aa..069c2e0952 100644 --- a/scripts/azure-pipelines/windows/azure-pipelines.yml +++ b/scripts/azure-pipelines/windows/azure-pipelines.yml @@ -70,7 +70,7 @@ jobs: inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)\failure-logs' ArtifactName: 'failure logs for ${{ parameters.triplet }}' - condition: failed() + condition: always() - task: PowerShell@2 displayName: 'Build a file list for all packages' condition: always()