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

svn:externals not being checked out

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Hudson 1.377, SVN Plugin 1.21, SVN repo v1.6, repo storage v1.4
    • Similar Issues:

      Description

      I've run into a problem with Hudson where svn:externals appear to be checked out during a build, but when I examine the working directory the externals aren't actually there. The following is output from one of my failed builds:

      Started by user anonymous
      Building remotely on build2
      Cleaning workspace /opt/hudson/workspace/Shell Build
      Checking out http://repo/svn/vwc_repo/ShellScripts/trunk/softsys
      ...(typical svn output)...
      Fetching 'http://repo/svn/vwc_repo/ShellScripts/trunk/lib/bashLibrary.sh' at 13,135 into '/opt/hudson/workspace/Shell Build/softsys/bashLibrary.sh'
      At revision 13143
      no change for http://repo/svn/vwc_repo/ShellScripts/trunk/softsys since the previous build
      no change for http://repo/svn/vwc_repo/ShellScripts/trunk/softsys/bashLibrary.sh since the previous build
      [Shell Build] $ /bin/sh -xe /tmp/hudson1416944625665584251.sh
      ...(execution of script)...
      

      So it appears as though the external is checked out, however upon examining the working directory (directly and via extra lines in the running script) the external is not actually there.

      Here is the definition of the external property on http://repo/svn/vwc_repo/ShellScripts/trunk/softsys:

      http://repo/svn/vwc_repo/ShellScripts/trunk/lib/bashLibrary.sh@13135 bashLibrary.sh

      Using SVN 1.6 I can check out the same directory and the external is properly retrieved.

      I have the Subversion Workspace Version set to "1.6 (svn:externals to file)" and have the workspace cleaned on every build.

        Attachments

          Issue Links

            Activity

            Hide
            zeliff zeliff added a comment -

            Problem still exists in Jenkins 1.563, Subversion plugin 2.2. The workarounds described by Henry Chan and Jack Ace do not work.

            Show
            zeliff zeliff added a comment - Problem still exists in Jenkins 1.563, Subversion plugin 2.2. The workarounds described by Henry Chan and Jack Ace do not work.
            Hide
            danielbeck Daniel Beck added a comment -

            zeliff: Likely related to JENKINS-21785 as of Subversion plugin 2.x. Try specifying Additional Credentials as described there. Also, note that externals are generally rather broken before 2.3.

            Given the massive changes to SVN auth in 2.0, I'm inclined to close this unless it is confirmed to still occur in 2.x. Does anyone object?

            Show
            danielbeck Daniel Beck added a comment - zeliff : Likely related to JENKINS-21785 as of Subversion plugin 2.x. Try specifying Additional Credentials as described there. Also, note that externals are generally rather broken before 2.3. Given the massive changes to SVN auth in 2.0, I'm inclined to close this unless it is confirmed to still occur in 2.x. Does anyone object?
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Marking as resolved.
            If somebody experiences the issue with the properly configured installation, please re-open the issue

            Show
            oleg_nenashev Oleg Nenashev added a comment - Marking as resolved. If somebody experiences the issue with the properly configured installation, please re-open the issue
            Hide
            fabienc Fabien Carmagnac added a comment - - edited

            Hi, I have the same problem.
            The external is in the same svn tree.
            in the svn :

            /a/b/c/foo.txt
            /a/d/e/f/foo.txt <== external to /a/b/c/foo.txt

            updating a/d/e does not update /a/d/e/f/foo.txt when /a/b/c/foo.txt has been updated.

            I have no throw inside jenkins.err.log.

            Jenkins ver : 1.647
            svn plugin (https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin) : 2.5.7
            os : win server 2008 R2
            client used to attach externals : tortoise 1.9

            Show
            fabienc Fabien Carmagnac added a comment - - edited Hi, I have the same problem. The external is in the same svn tree. in the svn : /a/b/c/foo.txt /a/d/e/f/foo.txt <== external to /a/b/c/foo.txt updating a/d/e does not update /a/d/e/f/foo.txt when /a/b/c/foo.txt has been updated. I have no throw inside jenkins.err.log. Jenkins ver : 1.647 svn plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin ) : 2.5.7 os : win server 2008 R2 client used to attach externals : tortoise 1.9
            Hide
            mikesmithnagrastar Michael Smith added a comment -

            Possibly worth mentioning, had a fresh Jenkins installation today and I was banging my head into the wall trying to see what the problem was (latest jenkins and plugins)..... turns out it was the silly little 'ignore externals' checkbox in the SVN config of the job itself. Make sure you're not a dummy like me

            Show
            mikesmithnagrastar Michael Smith added a comment - Possibly worth mentioning, had a fresh Jenkins installation today and I was banging my head into the wall trying to see what the problem was (latest jenkins and plugins)..... turns out it was the silly little 'ignore externals' checkbox in the SVN config of the job itself. Make sure you're not a dummy like me

              People

              • Assignee:
                Unassigned
                Reporter:
                matt__ matt__
              • Votes:
                14 Vote for this issue
                Watchers:
                18 Start watching this issue

                Dates

                • Created:
                  Updated: