[CI] Do not download artifacts for api diff if it failed. (#13923)

This commit is contained in:
Manuel de la Pena 2022-02-28 11:34:23 -05:00 коммит произвёл GitHub
Родитель a812ce4242
Коммит afddc693c9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -19,7 +19,7 @@ steps:
devicePrefix: sim devicePrefix: sim
runTests: ${{ parameters.runTests }} runTests: ${{ parameters.runTests }}
- ${{ if eq(parameters.enableAPIDiff, true) }}: - ${{ if and(eq(parameters.enableAPIDiff, true), eq(variables['APIDIFF_BUILT'], 'True')) }}:
# Download the Html Report that was added by the tests job. # Download the Html Report that was added by the tests job.
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
displayName: 'Download API diff (from stable)' displayName: 'Download API diff (from stable)'
@ -34,6 +34,7 @@ steps:
archiveFilePatterns: '$(System.DefaultWorkingDirectory)/Reports/apidiff-stable/apidiff-stable.zip' archiveFilePatterns: '$(System.DefaultWorkingDirectory)/Reports/apidiff-stable/apidiff-stable.zip'
destinationFolder: '$(System.DefaultWorkingDirectory)/apidiff-stable' destinationFolder: '$(System.DefaultWorkingDirectory)/apidiff-stable'
- ${{ if and(eq(parameters.enableAPIDiff, true), eq(variables['API_GENERATOR_BUILT'], 'True')) }}:
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
displayName: 'Download API & Generator comparison' displayName: 'Download API & Generator comparison'
condition: and(succeeded(), contains(variables.API_GENERATOR_DIFF_BUILT, 'True')) condition: and(succeeded(), contains(variables.API_GENERATOR_DIFF_BUILT, 'True'))