Is it possible to clone only a single git branch in hudson ?
Hudson version 2.2.0 with git plugin version 2.2.0 clones the entire specified project, thus occupying lot of space (which is expected to grow forever)
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Configuring refspec in the hudson-git plugin to the following value seems to be working:
Addendum for 2023:
In 2023 that is not enough, the "Honor refspec on initial clone" option under "Advanced clone behaviours" must also be enabled.
Also "Shallow clone" can be enabled at the same place to save a bit more space (it omits downloading the history, it download only the latest version).