You've already forked jenkins-lib
mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-08-25 20:09:25 +02:00
add archive artifacts, logging, fix path to config
This commit is contained in:
@@ -53,10 +53,11 @@ class Yaxunit implements Serializable {
|
||||
// Готовим конфиг для yaxunit
|
||||
String yaxunitConfigPath = options.configPath
|
||||
if (!steps.fileExists(yaxunitConfigPath)) {
|
||||
Logger.println("Using default yaxunit config")
|
||||
def defaultYaxunitConfig = steps.libraryResource DEFAULT_YAXUNIT_CONFIGURATION_RESOURCE
|
||||
steps.writeFile(options.configPath, defaultYaxunitConfig, 'UTF-8')
|
||||
}
|
||||
def yaxunitConfig = FileUtils.getFilePath(yaxunitConfigPath)
|
||||
def yaxunitConfig = FileUtils.getFilePath("$env.WORKSPACE/$yaxunitConfigPath")
|
||||
|
||||
// Команда запуска тестов
|
||||
String runTestsCommand = "$vrunnerPath run --command RunUnitTests=$yaxunitConfig $ibConnection"
|
||||
@@ -130,6 +131,8 @@ class Yaxunit implements Serializable {
|
||||
steps.stash(YAXUNIT_ALLURE_STASH, "$allureReportDir/**", true)
|
||||
}
|
||||
|
||||
steps.archiveArtifacts("build/out/yaxunit/log.txt")
|
||||
|
||||
if (options.coverage) {
|
||||
steps.stash(COVERAGE_STASH_NAME, COVERAGE_STASH_PATH, true)
|
||||
}
|
||||
|
Reference in New Issue
Block a user