Use this plugin to convert your current jobs in Job DSL scripts (see Job DSL Plugin for more informations)
Instructions
You can find the plugin on sidepanel of Jenkins.
1 - Select the jobs you want to convert.
2 - You can check the "Create view for all selected jobs" and give it a name
3 - Click on "Convert selected to DSL" button
4 - Now you can Download the file, copy the script itself
5 - Below we have the Non-translated section, if you need some of these tags translated, please, create an issue on https://github.com/jenkinsci/xml-job-to-job-dsl-plugin
Version History
Version 0.1 (02/01/2018)
Initial version