From 7702d1663ac1e453cb411c5968f9a7231714723d Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Fri, 19 Apr 2024 07:16:32 -1000 Subject: [PATCH] [ci] Ensure logs and artifacts get published on failed builds. (#876) After [migrating to the 1ES template](https://github.com/xamarin/AndroidX/pull/844), when our build fails, no logs or artifacts are retained, making it very hard to diagnose the issue. Add an `always` condition to the output upload so these will get saved. Example build demonstrating artifacts are uploaded on failure: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=9440304&view=results --- build/ci/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/build/ci/build.yml b/build/ci/build.yml index 29b1366e..7bdbaefd 100644 --- a/build/ci/build.yml +++ b/build/ci/build.yml @@ -44,6 +44,7 @@ jobs: - output: pipelineArtifact targetPath: ${{ parameters.artifactsPath }} artifactName: output-${{ parameters.name }} + condition: always() steps: - template: setup-environment.yml