A user can (accidentally) bypass this check by writing `rundeck {}` and create an invalid config. You could move the check to PublisherContext .rundeck or you remove the option here an make it mandatory in the rundeck method like `rundeck(String jobId, Closure closure = null)`.