Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7950

please add possibility to specify a --reference for the initial git clone of a repo into a workspace

    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

          Activity

          pjimenez3 pjimenez3 created issue -
          Hide
          codyc Codyc added a comment -

          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!)

          Show
          codyc Codyc added a comment - 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!)
          abayer abayer made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          abayer abayer made changes -
          Link This issue is duplicated by JENKINS-4134 [ JENKINS-4134 ]
          Hide
          markewaite Mark Waite added a comment -

          Reference repositories are supported as part of the "Additional Behaviours" section "Advanced clone options".

          Show
          markewaite Mark Waite added a comment - Reference repositories are supported as part of the "Additional Behaviours" section "Advanced clone options".
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              abayer abayer
              Reporter:
              pjimenez3 pjimenez3
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: