1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-08-25 20:09:25 +02:00

Обход ошибки публикации результата YaXunit из jUnit в Allure (#141)

Co-authored-by: Oleg Karataev <test@mail.ru>
Co-authored-by: Nikita Fedkin <nixel2007@gmail.com>
This commit is contained in:
Karataev Oleg
2025-01-27 20:36:48 +03:00
committed by GitHub
parent d96da9e3e3
commit b26bdd15b4
2 changed files with 29 additions and 26 deletions

View File

@@ -86,7 +86,10 @@ class Yaxunit implements Serializable, Coverable {
FilePath pathToAllureReport = FileUtils.getFilePath("$env.WORKSPACE/$allureReport")
String allureReportDir = FileUtils.getLocalPath(pathToAllureReport.getParent())
pathToJUnitReport.copyTo(pathToAllureReport)
String pathToJUnitReportString = pathToJUnitReport.getRemote()
if (steps.fileExists(pathToJUnitReportString)) {
pathToJUnitReport.copyTo(pathToAllureReport)
}
steps.stash(YAXUNIT_ALLURE_STASH, "$allureReportDir/**", true)
}