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<>();
|
||||
|
||||
def allureSubDirs = allurePath.listDirectories()
|
||||
if (allureSubDirs.size() > 0) {
|
||||
allureSubDirs.forEach({ filePath -> results.add(filePath.getRemote()) })
|
||||
} else {
|
||||
allurePath.listDirectories().each { FilePath filePath ->
|
||||
results.add(filePath.getRemote())
|
||||
}
|
||||
if (results.isEmpty()) {
|
||||
results.add(allurePath.getRemote())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user