Right now we use Jenkinsfiles for all of our branches and we run these jobs across slaves.
Our master does no jobs, it's meant to just coordinate the slaves.
However because each branch is built, that means the master clones our entire repository per branch. This takes up a lot of disk space.
Is there a way to do a shallow clone on the master so that it only knows about the branch that it's building? It doesnt make sense to clone the whole repo per branch when the branch is a subset of the repo itself.
every branch is 175+MB on the master because each branch is a git clone. I'd like to only get the context of a branch on the master as well as the slave.
Also, on the slave I'm unsure how to do a shallow clone via Jenkinsfile DSL without specifying all of the other information, such as User credentials, credentials Id, etc.
I'd like to just have