I have a Jenkins pipeline step where I extract the build number from an INI file.
This answer shows how to do this using a Properties object - but for this to work, I have to disable "Use Groovy Sandbox".
How can I solve this in a "Groovy Sandbox" approved manner?
Edit: I would prefer to use methods that are approved out of the box, rather than modifying a whitelist. So this question is really asking how to solve the problem with methods that are already allowed.