There is currently no way to generate a Job DSL script for an existing job. Some time ago this was reported in the tracker on the Jenkins issue as JENKINS-16360 , and someone even suggested bounty , but AFAIK no one is working on this issue.
source
share