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

Make as-it-is checkout only files initally

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      SVNKit checks out to infinity by default if unknown is given as the
      depth to checkout. If you're using as-it-is you probably don't want the
      whole source tree, so change as-it-is to set the depth to files for
      checkout and unknown for updates.

      Not sure how flexible to be here some people might really want immediates or empty instead of files. But files is probably close enough isn't it. There could be an extra setting for this but I don't think that necessary.

        Attachments

          Issue Links

            Activity

            Hide
            nsleigh Neil Sleightholm added a comment - - edited

            In my case this has introduced a problem, I want a clean workspace to be updated to infinity and then my build process will remove some files and I want this to be the "as-it-is" state. This defect has now broken this behaviour - can I request that this change is regressed?

            Ivan Fernandez Calvo - is it possible to get this reverted?

            Show
            nsleigh Neil Sleightholm added a comment - - edited In my case this has introduced a problem, I want a clean workspace to be updated to infinity and then my build process will remove some files and I want this to be the "as-it-is" state. This defect has now broken this behaviour - can I request that this change is regressed? Ivan Fernandez Calvo - is it possible to get this reverted?
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment -

            maybe we can add an option to set the value of `--set-depth` when you select `as-it-is`

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - maybe we can add an option to set the value of `--set-depth` when you select `as-it-is`
            Hide
            nsleigh Neil Sleightholm added a comment -

            That would be perfect.

            Show
            nsleigh Neil Sleightholm added a comment - That would be perfect.
            Hide
            slawomir_czarko Slawomir Czarko added a comment -

            The way I have been using as-it-is so far is by doing a full checkout first then running my own script which was pruning the working copy using svn up --set-depth. Starting with 'files' as depth is not good enough for that case since the script I use for pruning the working copy is in a subdirectory.

            What is the reason for this change in behaviour of as-it-is?

            Show
            slawomir_czarko Slawomir Czarko added a comment - The way I have been using as-it-is so far is by doing a full checkout first then running my own script which was pruning the working copy using svn up --set-depth. Starting with 'files' as depth is not good enough for that case since the script I use for pruning the working copy is in a subdirectory. What is the reason for this change in behaviour of as-it-is?
            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - this is the PR https://github.com/jenkinsci/subversion-plugin/pull/200
            Hide
            nsleigh Neil Sleightholm added a comment -

            Ivan Fernandez Calvo - do you know when this fix will be released? It looks like there is an issue with PR2.

            Show
            nsleigh Neil Sleightholm added a comment - Ivan Fernandez Calvo  - do you know when this fix will be released? It looks like there is an issue with PR2.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Ivan Fernandez Calvo
            Path:
            src/main/java/hudson/scm/SubversionSCM.java
            src/main/resources/hudson/scm/SubversionSCM/ModuleLocation/config.jelly
            src/test/java/jenkins/scm/impl/subversion/SubversionStepTest.java
            http://jenkins-ci.org/commit/subversion-plugin/89034210d546d060f30dc66087dc42cea77c50a1
            Log:
            JENKINS-50287 allow to select two different behaviours for as-it-is checkout (#215)

            • JENKINS-50287 allow to select two different behaviours for as-it-is checkout

            *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

            Functionality will be removed from GitHub.com on January 31st, 2019.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ivan Fernandez Calvo Path: src/main/java/hudson/scm/SubversionSCM.java src/main/resources/hudson/scm/SubversionSCM/ModuleLocation/config.jelly src/test/java/jenkins/scm/impl/subversion/SubversionStepTest.java http://jenkins-ci.org/commit/subversion-plugin/89034210d546d060f30dc66087dc42cea77c50a1 Log: JENKINS-50287 allow to select two different behaviours for as-it-is checkout (#215) JENKINS-50287 allow to select two different behaviours for as-it-is checkout * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment -

            Released on 2.10.6

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - Released on 2.10.6

              People

              • Assignee:
                ifernandezcalvo Ivan Fernandez Calvo
                Reporter:
                ifernandezcalvo Ivan Fernandez Calvo
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: