Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: git-plugin
-
Labels:None
-
Environment:Hudson server on-site, build slaves on EC2 via the EC2 plugin
Description
It would be nice (and much more efficient) if I could provide a --reference <url> argument to the initial clone of a repo into a workspace so that the bulk of the clone could be from a local mirror (that's slightly out of date) and the whole repo doesn't have to be pulled across the net from the home office over to amazon.
Issue Links
- is duplicated by
-
JENKINS-4134
Add possibility to specify --reference to the git plugin
-
- Closed
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Link |
This issue is duplicated by |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
I looked into implementing this feature, and on the way I found out that you can have multiple repositories for a build target. On a whim, I tried:
1. Define the local (cache) repository. Click "Advanced" and give it a name. (ex: "local-repo")
2. Add another repository pointing to your "home office". Click "Advanced", and give it a name: (ex: "remote-repo")
3. When specifying which branches to build, make sure to specify which git-remote's branch to use. (ex: remote-repo/branchname)
That seems to give the desired behavior (yay!)