Checkout submodules in Jenkins with Github organisation plugin
<p>I have a build job in Jenkins created by the <a href="https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Organization+Folder+Plugin" rel="noreferrer">Github Organization plugin</a>. The <code>Jenkinsfile</code> for this build checkouts the code using <code>checkout scm</code> which is good as it figures out the correct branch/revision to checkout when building either PR triggered changes or pushes to the master branch. </p>

<p>How can I make this: </p>

<pre><code>node {
  checkout scm 
}
</code></pre>

<p>checkout submodules? </p>