1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-13 11:27:08 +02:00

Добавлено временное логирование работы шага аллюр

This commit is contained in:
Nikita Gryzlov 2020-10-21 12:17:07 +03:00
parent 5dacc3242a
commit 9e1f393f3e
No known key found for this signature in database
GPG Key ID: C1EAE411FEF0BF2F
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package ru.pulsar.jenkins.library package ru.pulsar.jenkins.library
import org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction import org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction
import ru.pulsar.jenkins.library.utils.Logger
import ru.yandex.qatools.allure.jenkins.config.ResultsConfig import ru.yandex.qatools.allure.jenkins.config.ResultsConfig
class StepExecutor implements IStepExecutor { class StepExecutor implements IStepExecutor {
@ -117,6 +118,7 @@ class StepExecutor implements IStepExecutor {
@Override @Override
def allure(List<String> results) { def allure(List<String> results) {
Logger.println(ResultsConfig.convertPaths(results))
steps.allure([ steps.allure([
commandline: 'allure', commandline: 'allure',
includeProperties: false, includeProperties: false,

View File

@ -32,6 +32,9 @@ class PublishAllure implements Serializable {
List<String> results = new ArrayList<>(); List<String> results = new ArrayList<>();
Logger.println(allurePath.toString())
Logger.println(allurePath.listDirectories().toString())
allurePath.listDirectories().each { FilePath filePath -> allurePath.listDirectories().each { FilePath filePath ->
results.add(filePath.getRemote()) results.add(filePath.getRemote())
} }
@ -39,6 +42,8 @@ class PublishAllure implements Serializable {
results.add(allurePath.getRemote()) results.add(allurePath.getRemote())
} }
Logger.println(results.toString())
steps.allure(results) steps.allure(results)
} }