[jenkins] Make it possible to skip running packaged Xamarin.Mac tests by setting the 'skip-packaged-xamarin-mac-tests' label. (#9170)

Diff is best viewed by ignoring whitespace.
This commit is contained in:
Rolf Bjarne Kvinge 2020-07-24 09:21:31 +02:00 коммит произвёл GitHub
Родитель 7a7c6f6286
Коммит dd1205a222
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 13 добавлений и 7 удалений

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

@ -837,6 +837,11 @@ timestamps {
stage ("Package XM tests") {
currentStage = "${STAGE_NAME}"
echo ("Building on ${env.NODE_NAME}")
def skipPackagedXamarinMacTests = getLabels ().contains ("skip-packaged-xamarin-mac-tests")
if (skipPackagedXamarinMacTests) {
echo ("Skipping packaged Xamarin.Mac tests because the label 'skip-packaged-xamarin-mac-tests' was found")
hasXamarinMacTests = false
} else {
def exitCode = sh (script: "make -C ${workspace}/xamarin-macios/tests package-tests", returnStatus: true)
if (exitCode != 0) {
hasXamarinMacTests = false
@ -848,6 +853,7 @@ timestamps {
uploadFiles ("tests/*.7z", "wrench", virtualPath)
}
}
}
timeout (time: 13, unit: 'HOURS') {
// We run tests locally and on older macOS bots in parallel.