Search code examples
gitcloudbeesshallow-clone

Enable GIT shallow clone in Cloudbees Jenkins


Is it possible to enable the shallow clone option for GIT in Cloudbees Jenkins? I am using Cloudbees Jenkins for my project. The client needs the shallow Clone option to be enabled. I couldn't find any option to do it.


Solution

  • Yup. It's possible.

    (Ever since v2.4.3)

    Shallow clone

    More info on that here:

    https://issues.jenkins-ci.org/browse/JENKINS-24728

    and

    https://www.cloudbees.com/blog/advanced-git-jenkins