[CI] Set status as error if one or more tests failed. (#11170)
Co-authored-by: Alex Soto <alex@alexsoto.me>
This commit is contained in:
Родитель
b483c26db4
Коммит
75e913ed4f
|
@ -119,6 +119,9 @@ steps:
|
|||
if($Env:TESTS_JOBSTATUS -ne "Succeeded")
|
||||
{
|
||||
Set-PipelineResult -Status partiallySucceeded
|
||||
Set-GitHubStatus -Status "error" -Description "Some tests failed." -Context "$(Build.DefinitionName) (Test run)"
|
||||
} else {
|
||||
Set-GitHubStatus -Status "success" -Description "All tests passed." -Context "$(Build.DefinitionName) (Test run)"
|
||||
}
|
||||
env:
|
||||
BUILD_REVISION: $(Build.SourceVersion)
|
||||
|
|
Загрузка…
Ссылка в новой задаче