[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
This commit is contained in:
Jonathan Pobst 2024-04-19 07:16:32 -10:00 коммит произвёл GitHub
Родитель 1f215c0a5c
Коммит 7702d1663a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -44,6 +44,7 @@ jobs:
- output: pipelineArtifact
targetPath: ${{ parameters.artifactsPath }}
artifactName: output-${{ parameters.name }}
condition: always()
steps:
- template: setup-environment.yml