title: Creating a Jenkins Pipeline build from a pipeline
body: <p>I'm trying to automate the creation of a Jenkins Pipeline build from within a pipeline.</p>
  
  <p>I have a pipeline which creates a Bitbucket repository and commits some code to it, including a Jenkinsfile.</p>
  
  <p>I need to add another step to this pipeline to then create the Pipeline build for it, which would run the steps in the Jenkinsfile.</p>
  
  <p>I think the Jobs DSL should be able to handle this but the documentation I've found for it has been very sparse, and I'm still not entirely sure if it's possible or how to do it.</p>
  
  <p>Any help would be appreciated. The generated Pipeline build I would imagine just needs to have a link to the repository and be told to run the Jenkinsfile there?</p>