1
0
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:
Marcus Holl 2019-06-26 17:05:11 +02:00
parent 52ad001917
commit f6f1e0df5a

View File

@ -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()
}