From 533a24187f00f404a82e0137785ce4b19c7055af Mon Sep 17 00:00:00 2001 From: Nikita Gryzlov Date: Tue, 20 Oct 2020 11:59:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BA=D0=B0=D0=B7=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=BE=D0=BB=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BF?= =?UTF-8?q?=D1=83=D1=82=D0=B8=20=D0=BD=D0=B0=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20=D0=BC=D0=B0=D1=88=D0=B8=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=B4=D0=BB=D1=8F=20results?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy b/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy index 135c824..9db5e24 100644 --- a/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy +++ b/src/ru/pulsar/jenkins/library/steps/PublishAllure.groovy @@ -34,15 +34,12 @@ class PublishAllure implements Serializable { def allureSubDirs = allurePath.listDirectories() if (allureSubDirs.size() > 0) { - allureSubDirs.forEach({ filePath -> results.add(getPath(filePath)) }) + allureSubDirs.forEach({ filePath -> results.add(filePath.getRemote()) }) } else { - results.add(getPath(allurePath)) + results.add(allurePath.getRemote()) } steps.allure(results) } - private static String getPath(FilePath filePath) { - filePath.getBaseName() + File.separator + filePath.getName() - } }