-
New Feature
-
Resolution: Duplicate
-
Critical
-
None
-
Platform: PC, OS: All
I'm trying to realize a way to unify some of the configurations in multiple
project environment (hundreds of them).
I was thinking about storing common configuration in common_config.xml and then
import it into the config.xml of the specific project. So it could look like:
<project>
<property name="projectname" value="version"/>...
<import file="../common_config.xml"/>
</project>
When the common_config.xml can be something like:
<project>
....
<customWorkspace>C:\Ivy\apache-ivy-2.0.0\src\example\multi-
project\projects\${projectname}</customWorkspace>
<project/>
But it seems that neither import or property usage are working.
When trying to import I'm getting:
Mar 18, 2009 4:30:59 PM hudson.util.RobustReflectionConverter doUnmarshal
WARNING: Skipping a non-existent field import
com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: No suc
h field hudson.model.FreeStyleProject.import
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(
FieldDictionary.java:106)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv
ider.getFieldType(PureJavaReflectionProvider.java:151)
at hudson.util.RobustReflectionConverter.determineType(RobustReflectionC
onverter.java:327)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionCon
verter.java:218)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConve
rter.java:173)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:81)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
bstractReferenceUnmarshaller.java:55)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:75)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:59)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
.java:142)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh
al(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931)
at hudson.util.XStream2.unmarshal(XStream2.java:65)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
at hudson.XmlFile.read(XmlFile.java:126)
at hudson.model.Items.load(Items.java:109)
at hudson.model.Hudson.load(Hudson.java:1837)
at hudson.model.Hudson.access$500(Hudson.java:191)
at hudson.model.Hudson$10.run(Hudson.java:2439)
Mar 18, 2009 4:30:59 PM hudson.model.Hudson load
WARNING: Failed to load C:\Documents and Settings\username\.hudson\jobs\version
java.lang.NullPointerException
at hudson.model.Project.updateTransientActions(Project.java:198)
at hudson.model.AbstractProject.onLoad(AbstractProject.java:199)
at hudson.model.Project.onLoad(Project.java:85)
at hudson.model.Items.load(Items.java:110)
at hudson.model.Hudson.load(Hudson.java:1837)
at hudson.model.Hudson.access$500(Hudson.java:191)
at hudson.model.Hudson$10.run(Hudson.java:2439)
******************************************************************
When i was testing the property usage I've got:
WARNING: Skipping a non-existent field property
com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: No suc
h field hudson.model.FreeStyleProject.property
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(
FieldDictionary.java:106)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv
ider.getFieldType(PureJavaReflectionProvider.java:151)
at hudson.util.RobustReflectionConverter.determineType(RobustReflectionC
onverter.java:327)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionCon
verter.java:218)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConve
rter.java:173)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:81)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
bstractReferenceUnmarshaller.java:55)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:75)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:59)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
.java:142)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarsh
al(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931)
at hudson.util.XStream2.unmarshal(XStream2.java:65)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
at hudson.XmlFile.read(XmlFile.java:126)
at hudson.model.Items.load(Items.java:109)
at hudson.model.Hudson.load(Hudson.java:1837)
at hudson.model.Hudson.<init>(Hudson.java:513)
at hudson.WebAppMain$2.run(WebAppMain.java:190)
Mar 18, 2009 4:51:17 PM hudson.ivy.IvyBuildTrigger$1 doInIvyContext
Which causes:
WARNING: Parsing error while reading the ivy file C:\Ivy\apache-ivy-2.0.0\src\ex
ample\multi-project\projects\${projectname}\ivy.xml
- duplicates
-
JENKINS-3157 Feature request: cascading project settings
- Open