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

allow checking out source in a subdirectory

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      The plugin does not seem to allow checking out the source code in a
      subdirectory of the workspace. It is not always convenient to have the project
      files directly in the workspace directory.

        Attachments

          Issue Links

            Activity

            mbetter Marcus Better created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Assignee kohsuke [ kohsuke ] jglick [ jglick ]
            Hide
            acdha acdha added a comment -

            This can be particularly problematic when supporting a mix of SVN, Mercurial and Git repos as the workspace location varies based on the VCS being used, which makes it hard to have common build scripts until an environment has completely transitioned over to one VCS.

            Show
            acdha acdha added a comment - This can be particularly problematic when supporting a mix of SVN, Mercurial and Git repos as the workspace location varies based on the VCS being used, which makes it hard to have common build scripts until an environment has completely transitioned over to one VCS.
            acdha acdha made changes -
            Link This issue is blocking JENKINS-7102 [ JENKINS-7102 ]
            Hide
            jglick Jesse Glick added a comment -

            Not sure what the last comment refers to, since SVN and Git plugins should also allow project sources to be at top level in the workspace, what I would consider the most obvious mode of operation. (In the case of SVN, you have to specify "." as the checkout directory rather than leaving this field blank, and endure a harmless exception on initial checkout - long ago filed by me.)

            Show
            jglick Jesse Glick added a comment - Not sure what the last comment refers to, since SVN and Git plugins should also allow project sources to be at top level in the workspace, what I would consider the most obvious mode of operation. (In the case of SVN, you have to specify "." as the checkout directory rather than leaving this field blank, and endure a harmless exception on initial checkout - long ago filed by me.)
            Hide
            acdha acdha added a comment -

            SVN allows you to set a "local module directory". This allows you to have a layout like:

            $WORKSPACE/checked-out-repo
            $WORKSPACE/coverage-reports
            $WORKSPACE/test-artifacts
            $WORKSPACE/<etc>

            With the Git and Mercurial plugins, there's no documented way to replicate that layout. It looks like this was added to the Git plugin yesterday: http://issues.jenkins-ci.org/browse/JENKINS-6357

            Show
            acdha acdha added a comment - SVN allows you to set a "local module directory". This allows you to have a layout like: $WORKSPACE/checked-out-repo $WORKSPACE/coverage-reports $WORKSPACE/test-artifacts $WORKSPACE/<etc> With the Git and Mercurial plugins, there's no documented way to replicate that layout. It looks like this was added to the Git plugin yesterday: http://issues.jenkins-ci.org/browse/JENKINS-6357
            Hide
            jglick Jesse Glick added a comment -

            Right, currently with the Hg plugin you would need to place generated files into a target/ or build/ subdirectory or the like.

            Show
            jglick Jesse Glick added a comment - Right, currently with the Hg plugin you would need to place generated files into a target/ or build/ subdirectory or the like.
            acdha acdha made changes -
            Priority Major [ 3 ] Minor [ 4 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : jglick
            Path:
            trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/HgRc.java
            http://jenkins-ci.org/commit/33418
            Log:
            Preparatory to JENKINS-3602, useful to document that the file paths here are of a Hg repository, not necessarily any Hudson workspace.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/HgRc.java http://jenkins-ci.org/commit/33418 Log: Preparatory to JENKINS-3602 , useful to document that the file paths here are of a Hg repository, not necessarily any Hudson workspace.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : jglick
            Path:
            trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java
            trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/help-clean.html
            http://jenkins-ci.org/commit/33419
            Log:
            Preparatory to JENKINS-3602, useful to name paths referring to repositories as "repository", not "workspace".

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/help-clean.html http://jenkins-ci.org/commit/33419 Log: Preparatory to JENKINS-3602 , useful to name paths referring to repositories as "repository", not "workspace".
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : jglick
            Path:
            trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java
            trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/config.jelly
            trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/help-subdir.html
            trunk/hudson/plugins/mercurial/src/test/java/hudson/plugins/mercurial/ForestTest.java
            trunk/hudson/plugins/mercurial/src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java
            http://jenkins-ci.org/commit/33423
            Log:
            [FIXED JENKINS-3602] Permit Hg repo to be cloned into a subdirectory of the workspace.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/config.jelly trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/help-subdir.html trunk/hudson/plugins/mercurial/src/test/java/hudson/plugins/mercurial/ForestTest.java trunk/hudson/plugins/mercurial/src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java http://jenkins-ci.org/commit/33423 Log: [FIXED JENKINS-3602] Permit Hg repo to be cloned into a subdirectory of the workspace.
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : jglick
            Path:
            trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/help-subdir.html
            http://jenkins-ci.org/commit/33424
            Log:
            JENKINS-3602 More information.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/plugins/mercurial/src/main/resources/hudson/plugins/mercurial/MercurialSCM/help-subdir.html http://jenkins-ci.org/commit/33424 Log: JENKINS-3602 More information.
            abayer Andrew Bayer made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 133675 ] JNJira + In-Review [ 202336 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                mbetter Marcus Better
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: