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

Указание полного пути на удаленной машине для results

This commit is contained in:
Nikita Gryzlov 2020-10-20 11:59:42 +03:00
parent bdcfd87a47
commit 533a24187f
No known key found for this signature in database
GPG Key ID: C1EAE411FEF0BF2F

View File

@ -34,15 +34,12 @@ class PublishAllure implements Serializable {
def allureSubDirs = allurePath.listDirectories() def allureSubDirs = allurePath.listDirectories()
if (allureSubDirs.size() > 0) { if (allureSubDirs.size() > 0) {
allureSubDirs.forEach({ filePath -> results.add(getPath(filePath)) }) allureSubDirs.forEach({ filePath -> results.add(filePath.getRemote()) })
} else { } else {
results.add(getPath(allurePath)) results.add(allurePath.getRemote())
} }
steps.allure(results) steps.allure(results)
} }
private static String getPath(FilePath filePath) {
filePath.getBaseName() + File.separator + filePath.getName()
}
} }