I checkout DSL test repo from job-dsl-gradle-example and run tests successfully on my Ubuntu with Jenkins.
But when I changed Jenkins version to 2.19.1 tests fails with error:
Changing back Jenkins version solved this issue.
Then I try to use
to create job without tests - fails again with the same error.
Interesting note: tests runs successfully on my macOS with any Jenkins version. I found same issue: job-dsl-gradle-example/issues/64