How do you keep these cached copies of the repositories up to date?
----- Original Message ----- From: jenkinsci-users@googlegroups.com To: jenkinsci-users@googlegroups.com At: Dec 11 2012 19:01:22 If your concern with multiple copies of the repository is due to disc space used by the git objects (.git/objects/*), then you could use the Git plugin ability to reference another repository. I place a copy of the git repository in a well known location on each slave (typically /var/cache/git/<reponame>) then use the "reference" capability in the advanced section of the git plugin so that all the unique repositories reference that single central copy of the git packed objects. That reduces the disc space use for the objects and still keeps every copy of the repository safely isolated from every other copy. Mark Waite >________________________________ > From: Uwe Maurer <uwe.mau...@gmail.com> >To: jenkinsci-users@googlegroups.com >Sent: Tuesday, December 11, 2012 10:08 AM >Subject: avoid multiple git repositories in matrix project > > >Hi, > > >I have a git repository and want to use a matrix project to build about 30 >different versions. >How can I set this up so that jenkins does not need 30 different copies of the >repository? >One solution could be to create symlinks on the filesystem to point all >versions to the same repository, and then run sequentially. But this is not so >nice. > > >I found a useSameScmCheckout flag in the MatrixProject.java, but it seems >there is no UI to set this flag. > > >Is there another solution? > > >Thanks, >Uwe > > > > > > > > > >
If your concern with multiple copies of the repository is due to disc space used by the git objects (.git/objects/*), then you could use the Git plugin ability to reference another repository.
I place a copy of the git repository in a well known location on each slave (typically /var/cache/git/<reponame>) then use the "reference" capability in the advanced section of the git plugin so that all the unique repositories reference that single central copy of the git packed
objects.
That reduces the disc space use for the objects and still keeps every copy of the repository safely isolated from every other copy.
Mark Waite
From: Uwe Maurer <uwe.mau...@gmail.com>
To: jenkinsci-users@googlegroups.com
Sent: Tuesday, December 11, 2012 10:08 AM
Subject: avoid multiple git repositories in matrix project
Hi,I have a git repository and want to use a matrix project to build about 30 different versions.How can I set this up so that jenkins does not need 30 different copies of the repository?One solution could be to create symlinks on the filesystem to point all versions to the same repository, and then run sequentially. But this is not so nice.I found a useSameScmCheckout flag in the MatrixProject.java, but it seems there is no UI to set this flag.Is there another solution?Thanks,Uwe