Jenkinsfile with two git repositories
<p>I'm using the Jenkins pipeline plugin with a Jenkinsfile. </p>

<p>In one repository, called vms.git, I have the Jenkinsfile and an application it builds. </p>

<p>I have another repository called deploy.git, which contains scripts I want to use to deploy the application in vms.git.</p>

<p>At the moment my Jenkinsfile just looks like this</p>

<pre><code>node {
  stage 'build'
  checkout scm
</code></pre>

<p>and I am defining the vms.git repo in the job configuration.</p>

<p>So what I would like to do is check out both repositories, then use the Jenkinsfile in vms.git to define the rest of the build. I want to reuse the deploy.git scripts in other pipelines so I don't want to put a Jenkinsfile in there.</p>