<?xml version="1.0" encoding="UTF-8"?>
<rm:locator searchPathRef="org.adempiere.server" failOnError="false"/>
<rm:locator searchPathRef="workspace.bundle.jar" failOnError="false"/>
<rm:locator searchPathRef="workspace.bundle.project" failOnError="false"/>
<rm:locator searchPathRef="workspace.feature.project2"/>
<rm:locator searchPathRef="workspace.feature.project"/>
<rm:searchPath name="org.adempiere.server">
<rm:provider componentTypes="osgi.bundle,eclipse.feature" readerType="p2" source="false" mutable="false">
<rm:property key="buckminster.source" value="false"/>
<rm:property key="buckminster.mutable" value="false"/>
<rm:uri format="file:////opt/idempiere-builds/idempiere.p2/"/>
</rm:provider>
</rm:searchPath>
<rm:searchPath name="workspace.bundle.project">
<rm:provider componentTypes="osgi.bundle" readerType="local">
<rm:uri format="{0}/{1}">
<bc:propertyRef key="workspace.root"/>
<bc:propertyRef key="buckminster.component"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
<rm:searchPath name="workspace.bundle.jar">
<rm:provider componentTypes="osgi.bundle" readerType="url" source="false" mutable="false">
<rm:property key="buckminster.source" value="false"/>
<rm:property key="buckminster.mutable" value="false"/>
<rm:uri format="file:///{0}/lib/plugins/{1}_{2}.jar">
<bc:replace>
<bc:propertyRef key="workspace.root"/>
<bc:match pattern="\s" replacement="%20"/>
</bc:replace>
<bc:propertyRef key="buckminster.component"/>
<bc:propertyRef key="jar.version"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
<rm:searchPath name="workspace.feature.project">
<rm:provider componentTypes="eclipse.feature" readerType="local">
<rm:uri format="{0}/{1}-feature">
<bc:propertyRef key="workspace.root"/>
<bc:propertyRef key="buckminster.component"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
<rm:searchPath name="workspace.feature.project2">
<rm:provider componentTypes="eclipse.feature" readerType="local">
<rm:uri format="{0}/{1}">
<bc:propertyRef key="workspace.root"/>
<bc:propertyRef key="buckminster.component"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
</rm:rmap>
As you can see, i put a p2 repository for the idempiere server search path in it. this is a repository in which i compile idempiere itself on a daily base. Then in jenkins i use this buckminster command:
setpref targetPlatformPath="/var/lib/jenkins/workspace/iDempiere/targetPlatform"
import '${WORKSPACE}/org.evenos.logvocatusfeature/logvocatus.cquery'
perform org.evenos.logvocatusfeature:eclipse.feature#buckminster.clean
build -t
perform -D qualifier.replacement.*=generator:buildTimestamp -D generator.buildTimestamp.format=\'v\'yyyyMMdd-HHmm -D target.os=linux -D
target.ws=gtk -D target.arch=x86 org.evenos.logvocatusfeature:eclipse.feature#site.p2
perform -D qualifier.replacement.*=generator:buildTimestamp -D generator.buildTimestamp.format=\'v\'yyyyMMdd-HHmm -D target.os=linux -D
target.ws=gtk -D target.arch=x86_64 org.evenos.logvocatusfeature:eclipse.feature#site.p2
Please notice that /var/lib/jenkins/workspace is my general jenkins workspace. I have two projects on my jenkins, one for idempiere which build in /var/lib/jenkins/workspace/iDempiere and one for my plugins which i build in /var/lib/jenkins/workspace/Logvocatusfeature
I hope this gives you a little help. I'll create a complete step by step tutorial once i have figured out how to build the fragments. Unfortunately i am stuck on another topic which i have to solve first...