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\"])
This can be done by using the directive of dir:
def exists = fileExists '' if (!exists){ new File('').mkdir() } dir ('') { git url: '' }