Steps to reproduce:
- Start with a fresh Jenkins installation (reproduced on both 2.7.1 LTS and 2.16(
- Install suggested plugins
- Install CloudBees Docker Pipeline plugin (1.7)
- Create a Pipeline project with the snippet below
- Run Pipeline, see exception below.
Note: The Pipeline project does, by default, have Groovy Sandbox checked (see screenshot). I have also reproduced this after restarting Jenkins to make sure there aren't any live-loading issues with the plugins.