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

Allow git fetch in subdirectory

    XMLWordPrintable

Details

    Description

      I have noticed that it is not possible to control where Hudson stores the GIT repository. It is always in workspace. In the subversion module you can specify a subdirectory relative to the workspace so you can get subversion will checkout the codebase to ${workspace}/source for example. Please add a similar feature to the GIT plugin.

      Attachments

        Issue Links

          Activity

            wolfc Carlo de Wolf added a comment -

            Attached patch introduces an extra configuration variable:

            • relative target directory

            The value of this configuration variable is appended to the workspace and then used as the working directory for git operations.

            wolfc Carlo de Wolf added a comment - Attached patch introduces an extra configuration variable: relative target directory The value of this configuration variable is appended to the workspace and then used as the working directory for git operations.
            dordrak dordrak added a comment -

            The patch looks good. Can it be integrated?

            dordrak dordrak added a comment - The patch looks good. Can it be integrated?
            abayer Andrew Bayer added a comment -

            Fixed in latest at github.com/hudson/Hudson-GIT-plugin - not sure when the next release will be, but this will be included.

            abayer Andrew Bayer added a comment - Fixed in latest at github.com/hudson/Hudson-GIT-plugin - not sure when the next release will be, but this will be included.
            dordrak dordrak added a comment -

            Are there any instructions on how to install the plugin from github.com manually? I really need this feature sooner than later.

            dordrak dordrak added a comment - Are there any instructions on how to install the plugin from github.com manually? I really need this feature sooner than later.
            abayer Andrew Bayer added a comment -

            Clone git://github.com/hudson/Hudson-GIT-plugin.git, run "mvn clean install", and then upload the git.hpi file in the target subdirectory to your Hudson install, from the Advanced tab on the Manage Plugins page.

            Or, actually, as I think about it, you can download the latest build from http://ci.hudson-labs.org/job/plugins_hudson-git-plugin/lastSuccessfulBuild/org.jvnet.hudson.plugins$git - you want the git.hpi.

            I'm hoping to have a release ready in the next week or so - I'm in the process of rewriting the tag/push logic at the moment, so I need to finish that up first.

            abayer Andrew Bayer added a comment - Clone git://github.com/hudson/Hudson-GIT-plugin.git, run "mvn clean install", and then upload the git.hpi file in the target subdirectory to your Hudson install, from the Advanced tab on the Manage Plugins page. Or, actually, as I think about it, you can download the latest build from http://ci.hudson-labs.org/job/plugins_hudson-git-plugin/lastSuccessfulBuild/org.jvnet.hudson.plugins$git - you want the git.hpi. I'm hoping to have a release ready in the next week or so - I'm in the process of rewriting the tag/push logic at the moment, so I need to finish that up first.

            People

              abayer Andrew Bayer
              dordrak dordrak
              Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: