title: Shallow git submodule checkout using Jenkins
body: <p>I have no problem doing this using git commands, as in <a href="https://stackoverflow.com/questions/6238590/set-git-submodule-to-shallow-clone-sparse-checkout">Set Git submodule to shallow clone &amp; sparse checkout?</a> but I have a project using Jenkins and I'm using the checkout() function in the Groovy Pipeline syntax. I can't find any option to pass the --depth option to the git submodule update commands.</p>