[jenkins] Improve rendering of failures on older macOS bots. (#5304)

Improve rendering of failures on older macOS bots by showing which bot things
failed on in the commit comment.
This commit is contained in:
Rolf Bjarne Kvinge 2018-12-20 07:34:23 +01:00 коммит произвёл GitHub
Родитель ac45389565
Коммит b21eb28b72
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -697,9 +697,7 @@ timestamps {
}
} catch (err) {
currentStage = "Running XM tests on '10.${macOS}'"
def msg = err.getMessage ();
if (msg == "")
msg = "Xamarin.Mac tests on 10.${macOS} failed"
def msg = "Xamarin.Mac tests on 10.${macOS} failed: " + err.getMessage ();
appendFileComment ("🔥 [${msg}](${env.RUN_DISPLAY_URL}) 🔥\n")
failedStages.add (currentStage)
throw err