Thank you for the suggestions.

I use symlinks now to point all workspaces to the same one. This seems to
work well.



On Wed, Dec 12, 2012 at 1:59 AM, Mark Waite <[email protected]> wrote:

> The cached copies reduce disc space usage even if they are out of date.
> The "git clone" will point to objects which exist in the "reference"
> repository if they are available there.  If the objects are not available
> in the reference repository, then the clone will copy that object from the
> origin repository.  Even if the reference repository was never updated, all
> the objects in the reference repository would continue to be referenced in
> new copies of that repository (continuing to save disc space).
>
> I also use a trivial python script in my git repositories which iterates
> over each repository name and performs a "git push --all <repo>".  That
> seems to keep the repositories updated well enough for my needs.
>
> Mark Waite
>
>   ------------------------------
> *From:* KEVIN FLEMING (BLOOMBERG/ 731 LEXIN) <[email protected]>
> *To:* [email protected]
> *Sent:* Tuesday, December 11, 2012 5:40 PM
> *Subject:* Re: avoid multiple git repositories in matrix project
>
> How do you keep these cached copies of the repositories up to date?
>
> ----- Original Message -----
> From: [email protected]
> To: [email protected]
> 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 <[email protected]>
> >To: [email protected]
> >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
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>

Reply via email to