jenkinsci / jenkinsci/subversion-plugin

[JENKINS-12040] Subversion plugin fails to check out files specified in svn:externals

Open
#883 3 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
131
Forks
275
Avg merge
12h 4m
Merged PRs (30d)
6

Description

Steps to reproduce:

1. Create svn externals file in the working copy of a check out project using 'svn propedit svn:externals .' command

2. Enter a line with / http:///, where:

is the name of the local directory where the file should be check out

is the name of the file

http:// is snv location

is the name of the file in svn

4. Save and commit the svn externals file.

5. Create Jenkins project and configure it to check out the svn url where you have commit the svn externals.

6. Optionally do a fresh check out on the machine using the native svn client version: 1.6.17 (r1128011) to ensure that the check out of the externals is working.

Result: Jenkins Subversion plugin fails to check out files specified in snv:externals

Error log:

ERROR: Failed to parse svn info for external http:/// at .////

org.tmatesoft.svn.core.SVNException: svn: '/.//' is not a working copy

at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)

at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:316)

at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:295)

at org.tmatesoft.svn.core.wc.SVNWCClient.crawlEntries(SVNWCClient.java:3304)

at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2506)

at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2873)

at hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:1038)

at hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:1008)

at hudson.FilePath.act(FilePath.java:783)

at hudson.FilePath.act(FilePath.java:765)

at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:692)

at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)

at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:568)

at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:457)

at hudson.model.Run.run(Run.java:1404)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)

at hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:238)

Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: '/.//' is not a working copy

at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:163)

at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:118)

at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:315)

... 16 more

---
Originally reported by naninani, imported from: Subversion plugin fails to check out files specified in svn:externals


  • status: Reopened
  • priority: Major
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 4
  • imported: 20251212-090250

Raw content of original issue

Steps to reproduce:
1. Create svn externals file in the working copy of a check out project using 'svn propedit svn:externals .' command
2. Enter a line with <local path>/<local file name> http://<svn url>/<svn file name>, where:
<local path> is the name of the local directory where the file should be check out
<local file name> is the name of the file
http://<svn url> is snv location
<svn file name> is the name of the file in svn
4. Save and commit the svn externals file.
5. Create Jenkins project and configure it to check out the svn url where you have commit the svn externals.
6. Optionally do a fresh check out on the machine using the native svn client version: 1.6.17 (r1128011) to ensure that the check out of the externals is working.

Result: Jenkins Subversion plugin fails to check out files specified in snv:externals

Error log:

ERROR: Failed to parse svn info for external http://<svn url>/<svn file name> at .///<local dir>/<local file name>
org.tmatesoft.svn.core.SVNException: svn: '<local path>/./<local dir>/<local file name>' is not a working copy
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:316)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:295)
at org.tmatesoft.svn.core.wc.SVNWCClient.crawlEntries(SVNWCClient.java:3304)
at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2506)
at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2873)
at hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:1038)
at hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:1008)
at hudson.FilePath.act(FilePath.java:783)
at hudson.FilePath.act(FilePath.java:765)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:692)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:568)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:457)
at hudson.model.Run.run(Run.java:1404)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: '<local path>/./<local dir>/<local file name>' is not a working copy
at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:163)
at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:118)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:315)
... 16 more

environment

```
Jenkins Subversion Plug-in version 1.37

Jenkins server 1.442 both master/slave and stand alone configurations.

Subversion Workspace Version 1.6 (svn:externals to file)

OS: RHEL 5.5 64 bit

local native svn client version: 1.6.17 (r1128011)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.