You've already forked jenkins-lib
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:
@@ -86,7 +86,10 @@ class Yaxunit implements Serializable, Coverable {
|
|||||||
FilePath pathToAllureReport = FileUtils.getFilePath("$env.WORKSPACE/$allureReport")
|
FilePath pathToAllureReport = FileUtils.getFilePath("$env.WORKSPACE/$allureReport")
|
||||||
String allureReportDir = FileUtils.getLocalPath(pathToAllureReport.getParent())
|
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)
|
steps.stash(YAXUNIT_ALLURE_STASH, "$allureReportDir/**", true)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user