[CI] Do not download artifacts for api diff if it failed. (#13923)
This commit is contained in:
Родитель
a812ce4242
Коммит
afddc693c9
|
@ -19,7 +19,7 @@ steps:
|
|||
devicePrefix: sim
|
||||
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.
|
||||
- task: DownloadPipelineArtifact@2
|
||||
displayName: 'Download API diff (from stable)'
|
||||
|
@ -34,6 +34,7 @@ steps:
|
|||
archiveFilePatterns: '$(System.DefaultWorkingDirectory)/Reports/apidiff-stable/apidiff-stable.zip'
|
||||
destinationFolder: '$(System.DefaultWorkingDirectory)/apidiff-stable'
|
||||
|
||||
- ${{ if and(eq(parameters.enableAPIDiff, true), eq(variables['API_GENERATOR_BUILT'], 'True')) }}:
|
||||
- task: DownloadPipelineArtifact@2
|
||||
displayName: 'Download API & Generator comparison'
|
||||
condition: and(succeeded(), contains(variables.API_GENERATOR_DIFF_BUILT, 'True'))
|
||||
|
|
Загрузка…
Ссылка в новой задаче