Skip to content

Commit

Permalink
add archive artifacts, logging, fix path to config
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Nov 27, 2024
1 parent 2495c65 commit d3dedac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ru/pulsar/jenkins/library/steps/Yaxunit.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit d3dedac

Please sign in to comment.