mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
fileExists also with map
This commit is contained in:
parent
52ad001917
commit
f6f1e0df5a
@ -26,6 +26,7 @@ class JenkinsFileExistsRule implements TestRule {
|
||||
void evaluate() throws Throwable {
|
||||
|
||||
testInstance.helper.registerAllowedMethod('fileExists', [String.class], {s -> return s in existingFiles})
|
||||
testInstance.helper.registerAllowedMethod('fileExists', [Map.class], {m -> return m.file in existingFiles})
|
||||
|
||||
base.evaluate()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user