I\'m exploring Jenkins 2.0 pipelines. So far my file is pretty simple.
node { stage \"checkout\" git([url:\"https://github.com/luxengine/math.git\"])
You are using the Pipeline Plugin, not the Job DSL Plugin. In the Pipeline Plugin, if you want to define something, where there is not yet a function available in the Pipeline syntax, you can define it yourself.