-
New Feature
-
Resolution: Unresolved
-
Critical
-
None
The Jenkins Pipeline plugin has a feature known as "lightweight checkout", where the master only pulls the Jenkinsfile from the repo as opposed to pulling the entire repository.
When I have several changes open in large repositories, checking out everything to master can result in Jenkins crashing if there is not enough space available. This will also save us a whole load of time!
Related reading: https://support.cloudbees.com/hc/en-us/articles/115002991272-Why-is-my-multibranch-project-cloning-the-whole-repository-on-the-master-
Based on the Q&A section of the above page, you would still need space to store an initial clone the first time the job is run. Subsequent job runs would not pull all new changes though, only the new Jenkinsfile. Direct link:
https://support.cloudbees.com/hc/en-us/articles/115002991272-Why-is-my-multibranch-project-cloning-the-whole-repository-on-the-master-#whyismypipelinejobcloningtheentirerepositoryonthemasterevenwheniselectalightweightcheckout