On top of that should be a Gradle plugin, to call this from Gradle.
See https://github.com/sheehan/job-dsl-gradle-example#rest-api-runner
And see https://groups.google.com/forum/#!msg/job-dsl-plugin/2TabLiuflwE/QYnLVz_M_mEJ
See https://github.com/sheehan/job-dsl-gradle-example#rest-api-runner