[jenkins] Don't try to upload any packaged Xamarin.Mac tests if there aren't any or the failed to compile. (#9645)

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This commit is contained in:
monojenkins 2020-09-16 10:25:59 -04:00 коммит произвёл GitHub
Родитель bfc98f8059
Коммит c8e056166b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 1 удалений

5
jenkins/Jenkinsfile поставляемый
Просмотреть файл

@ -740,8 +740,11 @@ timestamps {
hasXamarinMacTests = false
echoError ("Failed to package Xamarin.Mac tests (exit code: ${exitCode})")
failedStages.add (currentStage)
} else {
def packaged_xm_tests = findFiles (glob: "tests/*.7z")
if (packaged_xm_tests.size () > 0)
uploadFiles ("tests/*.7z", "wrench", virtualPath)
}
uploadFiles ("tests/*.7z", "wrench", virtualPath)
}
timeout (time: 13, unit: 'HOURS') {