mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-12-13 11:27:08 +02:00
forEach -> each
This commit is contained in:
parent
2f61ef2e36
commit
b935f8a7da
@ -32,10 +32,10 @@ class PublishAllure implements Serializable {
|
|||||||
|
|
||||||
List<String> results = new ArrayList<>();
|
List<String> results = new ArrayList<>();
|
||||||
|
|
||||||
def allureSubDirs = allurePath.listDirectories()
|
allurePath.listDirectories().each { FilePath filePath ->
|
||||||
if (allureSubDirs.size() > 0) {
|
results.add(filePath.getRemote())
|
||||||
allureSubDirs.forEach({ filePath -> results.add(filePath.getRemote()) })
|
}
|
||||||
} else {
|
if (results.isEmpty()) {
|
||||||
results.add(allurePath.getRemote())
|
results.add(allurePath.getRemote())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user