How to search a string variable in Groovy for a specific part of a string.
Summary:
How to search a string variable in Groovy for a specific part of a string.
Content:
We're currently using an pipeline that triggers everyday and processes the files that have been placed in the openbatch folder in Data Exchange. However, the pipelines is triggered every day and thus creates a folder every day. Even though there is no file to process.
What I want to do is to trigger it only if there are files in the relevant folder. I was thinking by launching a get request to retrieve all the files in application, which works. But the result is a variable with all the details of all the files. I would like to filter only on files which have a specific name. I.e., which start with "inbox/batches/openbatch/…"