mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +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 {
|
void evaluate() throws Throwable {
|
||||||
|
|
||||||
testInstance.helper.registerAllowedMethod('fileExists', [String.class], {s -> return s in existingFiles})
|
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()
|
base.evaluate()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user