Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0.0
-
Component/s: subversion
-
Labels:None
-
Environment:Platform: All, OS: All
Description
There is value in being able to specify command line args/options for the
subversion update/checkout commands.
In particular it would be very useful to override svn:externals prop.
"--ignore-externals"
-
- 777-screenshot.jpg
- 55 kB
- 14/Apr/11 9:26 AM
Issue Links
- is duplicated by
-
HUDSON-3956
Add abilty to specify custom svn options
-
Activity
-
-
- Issue 3956 has been marked as a duplicate of this issue. ***
-
-
-
- Issue 3956 has been marked as a duplicate of this issue. ***
-
It would also be handy to be able to set the --depth parameter. I have a very
large M2 project of common utilities across my organization. Very few of these
modules are related to each other in any way, and so I have split the entire
project into one Hudson job for each Maven module; unfortunately, without having
access to svn --depth= argument, a change in any module triggers the top level
pom job to run, which dominoes 40-50 other jobs.
PLEASE expose subversion CLI arguments at Hudson and per-job levels. THANKS!
I second the call for access to the --depth parameter. In my case I need to get a top-level directory with --depth=files, and then get two subdirectories of that top-level directory.
Actually, I need only one file from that top-level directory, but putting it down as a repository URL yields this error:
ERROR: Failed to check out http://server/blah/blah/somefile
org.tmatesoft.svn.core.SVNException: svn: URL 'http://server/blah/blah/somefile' refers to a file, not a directory
I looked at the source and it seems like the "depth" parameter has been hardwired to INFINITY.
Also agreed... --depth and the ability to subsequently perform sparse checkouts from a large SVN repository are something we desperately need to improve our overall build performance.
I've tried installing this hpi
http://hudson-ci.org/hudson/job/subversion-plugin/5/artifact/target/subversion.hpi
Using Manage plugins advanced tab upload plugin on a latest 2.0.0 SNAPSHOT build and I don't see the combo boxes from the screeenshot after a restart when creating a new free style job
I've realised my mistake the core is currently fixed to version 1.20 of subversion, once I upgraded to 1.23 the hpi installed OK.
The new options worked fine but I lost all my old subversion jobs created using 1.20 in the upgrade process. This isn't good so I'm re-opening the issue so this can be looked at.
New features work fine but the upgrade from Subversion plugin 1.20 caused my jobs to disappear.
This is the exception
SEVERE: Failed Loading job Hudson3
hudson.util.IOException2: Unable to read C:\Hudson\home\jobs\Hudson3\config.xml
at hudson.XmlFile.read(XmlFile.java:130)
at hudson.model.Items.load(Items.java:108)
at hudson.model.Hudson$13.run(Hudson.java:2268)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:14
6)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at hudson.model.Hudson$4.runTask(Hudson.java:734)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.ConversionException: hudson.scm.SubversionS
CM$ModuleLocation : hudson.scm.SubversionSCM$ModuleLocation : hudson.scm.SubversionSCM$Mod
uleLocation : hudson.scm.SubversionSCM$ModuleLocation
---- Debugging information ----
message : hudson.scm.SubversionSCM$ModuleLocation : hudson.scm.SubversionSCM$M
oduleLocation
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : hudson.scm.SubversionSCM$ModuleLocation : hudson.scm.SubversionSCM$M
oduleLocation
class : hudson.maven.MavenModuleSet
required-type : [Lhudson.scm.ModuleLocation;
path : /maven2-moduleset/scm/locations/hudson.scm.SubversionSCM$ModuleLocat
ion
line number : 9
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89
)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractRef
erenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.
java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.
java:60)
at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.
java:290)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.jav
a:233)
at org.hudsonci.inject.injecto.internal.XStreamInjectoHandler$InjectoConverter.doU
nmarshal(XStreamInjectoHandler.java:111)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:
180)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82
)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractRef
erenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.
java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.
java:60)
at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.
java:290)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.jav
a:233)
at org.hudsonci.inject.injecto.internal.XStreamInjectoHandler$InjectoConverter.doU
nmarshal(XStreamInjectoHandler.java:111)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:
180)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82
)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractRef
erenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.
java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.
java:60)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(Abstrac
tTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
at hudson.util.XStream2.unmarshal(XStream2.java:80)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:856)
at hudson.XmlFile.read(XmlFile.java:126)
... 10 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.scm.Subvers
ionSCM$ModuleLocation : hudson.scm.SubversionSCM$ModuleLocation
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper
.java:71)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasing
Mapper.java:88)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapp
er.java:86)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:96)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:142)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:56)
at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(Hierarchic
alStreams.java:29)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea
dItem(AbstractCollectionConverter.java:70)
at com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(ArrayC
onverter.java:55)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82
)
... 36 more
Fixed configuration backward compatibility,
https://github.com/hudson-plugins/subversion-plugin/commit/5504b70b03464df50e4ba61646114d8ec39146ad
People
-
- Assignee:
- Unassigned
- Reporter:
- nickleeye
Dates
-
- Created:
- Updated:
- Resolved: