From 9e1f393f3eaf8ae966481caf82dc59b2f1fb1831 Mon Sep 17 00:00:00 2001 From: Nikita Gryzlov Date: Wed, 21 Oct 2020 12:17:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE?= =?UTF-8?q?=D0=B5=20=D0=BB=D0=BE=D0=B3=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=88?= =?UTF-8?q?=D0=B0=D0=B3=D0=B0=20=D0=B0=D0=BB=D0=BB=D1=8E=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ru/pulsar/jenkins/library/StepExecutor.groovy | 2 ++ src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/ru/pulsar/jenkins/library/StepExecutor.groovy b/src/ru/pulsar/jenkins/library/StepExecutor.groovy index 8c1a2b0..df33b21 100644 --- a/src/ru/pulsar/jenkins/library/StepExecutor.groovy +++ b/src/ru/pulsar/jenkins/library/StepExecutor.groovy @@ -1,6 +1,7 @@ package ru.pulsar.jenkins.library import org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction +import ru.pulsar.jenkins.library.utils.Logger import ru.yandex.qatools.allure.jenkins.config.ResultsConfig class StepExecutor implements IStepExecutor { @@ -117,6 +118,7 @@ class StepExecutor implements IStepExecutor { @Override def allure(List results) { + Logger.println(ResultsConfig.convertPaths(results)) steps.allure([ commandline: 'allure', includeProperties: false, diff --git a/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy b/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy index de76c22..09d7569 100644 --- a/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy +++ b/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy @@ -32,6 +32,9 @@ class PublishAllure implements Serializable { List results = new ArrayList<>(); + Logger.println(allurePath.toString()) + Logger.println(allurePath.listDirectories().toString()) + allurePath.listDirectories().each { FilePath filePath -> results.add(filePath.getRemote()) } @@ -39,6 +42,8 @@ class PublishAllure implements Serializable { results.add(allurePath.getRemote()) } + Logger.println(results.toString()) + steps.allure(results) }