|
|
|
|
Re: Buckminster build in hudson with precreated target platform [message #719745 is a reply to message #719474] |
Sun, 28 August 2011 18:20 |
Lothar Werzinger Messages: 153 Registered: July 2009 Location: Bay Area |
Senior Member |
|
|
Philipp Nanz wrote on Sat, 27 August 2011 04:30Something like this should work
<searchPath name="resources">
<provider readerType="local"
componentTypes="osgi.bundle,buckminster"
mutable="true" source="true">
<uri format="file:///{0}/xyz/plugins/{1}/">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="local"
componentTypes="eclipse.feature"
mutable="true" source="true">
<uri format="file:///{0}/xyz/features/{1}/">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>
Using your snippet gives me this error message in the build (after switching the log level to debug).
resolve '../mmt-tools.cquery'
Platform install location: /var/lib/hudson/tools/Buckminster_3.6/buckminster
Target platform provided by class org.eclipse.buckminster.pde.internal.PDETargetPlatform
biz.tradescape.mmt.tools.feature:eclipse.feature: Using resolver rmap
biz.tradescape.mmt.tools.feature:eclipse.feature: Using resolver Local resolver
biz.tradescape.mmt.tools.feature:eclipse.feature: Trying provider local(materialized)
No materialization found for biz.tradescape.mmt.tools.feature:eclipse.feature
biz.tradescape.mmt.tools.feature:eclipse.feature: Trying provider local(workspace)
No open workspace project found that corresponds to biz.tradescape.mmt.tools.feature:eclipse.feature
biz.tradescape.mmt.tools.feature:eclipse.feature: Rejecting provider local(target): Target platform disabled in query
biz.tradescape.mmt.tools.feature:eclipse.feature: Using resource map file:/var/lib/hudson/jobs/test/mmt-tools.rmap
biz.tradescape.mmt.tools.feature:eclipse.feature: Using search path local
biz.tradescape.mmt.tools.feature:eclipse.feature: Trying provider local(file:///{0}/mmt/plugins/{1}/[file:////var/lib/hudson/jobs/test/workspace/mmt/plugins/biz.tradescape.mmt.tools.feature/])
biz.tradescape.mmt.tools.feature:eclipse.feature: Rejecting provider local(file:///{0}/mmt/plugins/{1}/[file:////var/lib/hudson/jobs/test/workspace/mmt/plugins/biz.tradescape.mmt.tools.feature/]): Components of type eclipse.feature are not supported
biz.tradescape.mmt.tools.feature:eclipse.feature: Trying provider local(file:///{0}/mmt/features/{1}/[file:////var/lib/hudson/jobs/test/workspace/mmt/features/biz.tradescape.mmt.tools.feature/])
biz.tradescape.mmt.tools.feature:eclipse.feature: Found match
biz.tradescape.mmt.tools.feature:eclipse.feature: Using provider local(file:///{0}/mmt/features/{1}/[file:////var/lib/hudson/jobs/test/workspace/mmt/features/biz.tradescape.mmt.tools.feature/])
ERROR [0001] : java.lang.NullPointerException
This is how my rmap now look like:
<rm:rmap xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>
<rm:searchPath name="local">
<rm:provider readerType="local"
componentTypes="osgi.bundle,buckminster"
mutable="true" source="true">
<rm:uri format="file:///{0}/mmt/plugins/{1}/">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</rm:uri>
</rm:provider>
<rm:provider readerType="local"
componentTypes="eclipse.feature"
mutable="true" source="true">
<rm:uri format="file:///{0}/mmt/features/{1}/">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</rm:uri>
</rm:provider>
</rm:searchPath>
<rm:locator searchPathRef="local" failOnError="true" />
</rm:rmap>
[Updated on: Sun, 28 August 2011 18:33] Report message to a moderator
|
|
|
|
|
|
Re: Buckminster build in hudson with precreated target platform [message #720084 is a reply to message #720036] |
Mon, 29 August 2011 20:55 |
|
Try --displaystacktrace (all lowercase)
- thomas
On 2011-08-29 19:55, Lothar Werzinger wrote:
> Philipp Nanz wrote on Mon, 29 August 2011 10:34
>> Hmmm, Nullpointer... Sounds like a bug... You can catch the Stacktrace using the --displayStackTrace option. For this
>> to work, you have to fetch the bucky process call from the Job log, add the switch and then execute it from the
>> command line.
>>
>> Example call from my log file looks like this
>> java -Dbuckminster.output.root=D:\jenkins\jobs\LogSaw_Build-Git\workspace\bucky
>> -Dbuckminster.temp.root=D:\jenkins\jobs\LogSaw_Build-Git\workspace\buckminster.temp
>> -Dqualifier.replacement.*=generator:lastModified -Dgenerator.lastModified.format='v'yyyyMMddHHmm -jar
>> D:\jenkins\tools\Buckminster-3.6\buckminster\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
>> -application org.eclipse.buckminster.cmdline.headless -data D:\jenkins\jobs\LogSaw_Build-Git\workspace --loglevel info
>> -S D:\jenkins\jobs\LogSaw_Build-Git\workspace\commands.txt
>>
>> Then you add --displayStackTrace before or after the --loglevel switch and run the resulting command from commandline.
>
>
> I copied and modified the reported command line, but buckminster does not like the extra argument:
>
>
> java -Dbuckminster.output.root=/var/lib/hudson/jobs/test/workspace/buckminster.output
> -Dbuckminster.temp.root=/var/lib/hudson/jobs/test/workspace/buckminster.temp -Xmx256m -jar
> /var/lib/hudson/tools/Buckminster_3.6/buckminster/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
> -application org.eclipse.buckminster.cmdline.headless -data /var/lib/hudson/jobs/test/workspace --displayStackTrace
> --loglevel debug -S /var/lib/hudson/jobs/test/workspace/commands.txt
> org.eclipse.buckminster.cmdline.parser.InvalidOptionException: The option '--displayStackTrace' is invalid
>
>
>
|
|
|
|
Re: Buckminster build in hudson with precreated target platform [message #720476 is a reply to message #720465] |
Tue, 30 August 2011 16:55 |
Lothar Werzinger Messages: 153 Registered: July 2009 Location: Bay Area |
Senior Member |
|
|
I tried to build another feature (using the site.p2 action)
Here's the commands.txt from the hudson job:
setpref targetPlatformPath="/var/lib/hudson/jobs/test2/builds/2011-08-30_08-23-26/archive//targetPlatform"
resolve ../mmt-tools.cquery
perform biz.tradescape.mmt.cdoserver.feature#site.p2
Now what puzzles me is that I get an error that org.apache.commons.logging.source is not found while executing the same action in the IDE (using the same target platform)
seems to work without problems.
hudson build:
INFO: resolve '../mmt-tools.cquery'
ERROR [0013] : No suitable provider for component org.apache.commons.logging.source:osgi.bundle/[1.1.1.v201101211721,1.1.1.v201101211721] was found in resourceMap file:/var/lib/hudson/jobs/test/mmt-tools.rmap
ERROR [0013] : No suitable provider for component org.apache.commons.logging.source:osgi.bundle/[1.1.1.v201101211721,1.1.1.v201101211721] was found in searchPath local
ERROR [0013] : Resolution attempt ended with exception: Provider local(file:////var/lib/hudson/jobs/test/workspace/mmt/plugins/org.apache.commons.logging.source/): Missing CSpec source required by component type osgi.bundle
ERROR Provider local(file:////var/lib/hudson/jobs/test/workspace/mmt/plugins/org.apache.commons.logging.source/): Missing CSpec source required by component type osgi.bundle
ERROR [0013] : Rejecting provider local(file:///{0}/mmt/features/{1}/[file:////var/lib/hudson/jobs/test/workspace/mmt/features/org.apache.commons.logging.source/]): Components of type osgi.bundle are not supported
INFO: TAG-ID 0013 = Query for biz.tradescape.mmt.tools.feature:eclipse.feature, path: biz.tradescape.mmt.tools.feature:eclipse.feature$1.0.0.qualifier -> biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier -> org.eclipse.net4j:eclipse.feature$4.0.0.v20110608-1440
[DEBUG] Skipping watched dependency update for build: test #76 due to result: FAILURE
Finished: FAILURE
IDE build
[start org.eclipse.emf.cdo.server:eclipse.feature$4.0.0.v20110608-1639#feature.jar]
[end org.eclipse.emf.cdo.server:eclipse.feature$4.0.0.v20110608-1639#feature.jar]
[start org.eclipse.emf.cdo.server.db:eclipse.feature$4.0.0.v20110608-1054#feature.jar]
[end org.eclipse.emf.cdo.server.db:eclipse.feature$4.0.0.v20110608-1054#feature.jar]
[start org.eclipse.net4j:eclipse.feature$4.0.0.v20110608-1440#feature.jar]
[end org.eclipse.net4j:eclipse.feature$4.0.0.v20110608-1440#feature.jar]
[start org.eclipse.net4j.db:eclipse.feature$4.0.0.v20110608-1440#feature.jar]
[end org.eclipse.net4j.db:eclipse.feature$4.0.0.v20110608-1440#feature.jar]
[start org.eclipse.net4j.db.derby:eclipse.feature$4.0.0.v20110607-1031#feature.jar]
[end org.eclipse.net4j.db.derby:eclipse.feature$4.0.0.v20110607-1031#feature.jar]
[start org.eclipse.net4j.db.h2:eclipse.feature$4.0.0.v20110607-1031#feature.jar]
[end org.eclipse.net4j.db.h2:eclipse.feature$4.0.0.v20110607-1031#feature.jar]
[start biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#copy.subfeatures]
[end biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#copy.subfeatures]
[start biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#eclipse.build]
[end biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#eclipse.build]
[start biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#bundle.jar]
[end biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#bundle.jar]
[start biz.tradescape.decimal:osgi.bundle$4.0.0.qualifier#eclipse.build]
[end biz.tradescape.decimal:osgi.bundle$4.0.0.qualifier#eclipse.build]
[start biz.tradescape.common:osgi.bundle$4.0.0.qualifier#eclipse.build]
[end biz.tradescape.common:osgi.bundle$4.0.0.qualifier#eclipse.build]
[start biz.tradescape.jacorb:osgi.bundle$4.0.0.qualifier#eclipse.build]
[end biz.tradescape.jacorb:osgi.bundle$4.0.0.qualifier#eclipse.build]
[start biz.tradescape.json:osgi.bundle$4.0.0.qualifier#eclipse.build]
[end biz.tradescape.json:osgi.bundle$4.0.0.qualifier#eclipse.build]
[start biz.tradescape.api.corba:osgi.bundle$4.0.0.qualifier#eclipse.build]
[end biz.tradescape.api.corba:osgi.bundle$4.0.0.qualifier#eclipse.build]
[start biz.tradescape.mmt:osgi.bundle$1.0.0.qualifier#eclipse.build]
[end biz.tradescape.mmt:osgi.bundle$1.0.0.qualifier#eclipse.build]
[start biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#eclipse.build]
[end biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#eclipse.build]
[start biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#bundle.jar]
[end biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#bundle.jar]
[start biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#eclipse.build]
[end biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#eclipse.build]
[start biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#manifest]
[end biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#manifest]
[start biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#bundle.jar]
[end biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#bundle.jar]
[start biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#source.manifest]
[end biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#source.manifest]
[start biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#source.bundle.jar]
[end biz.tradescape.mmt.model.administration:osgi.bundle$4.0.0#source.bundle.jar]
[start biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#source.manifest]
[end biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#source.manifest]
[start biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#source.bundle.jar]
[end biz.tradescape.mmt.model.marketplace:osgi.bundle$1.0.0#source.bundle.jar]
[start biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#source.manifest]
[end biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#source.manifest]
[start biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#source.bundle.jar]
[end biz.tradescape.mmt.cdo.query:osgi.bundle$1.0.0.qualifier#source.bundle.jar]
[start biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#copy.plugins]
[end biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#copy.plugins]
[start biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#manifest]
[end biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#manifest]
[start biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#site.p2]
[end biz.tradescape.mmt.cdoserver.feature:eclipse.feature$1.0.0.qualifier#site.p2]
Any pointers as to what I am doing wrong are highly appreciated.
Edit:
I checked the used target platform and it does indeed not contain the sought org.apache.commons.logging.source:osgi.bundle/[1.1.1.v201101211721,1.1.1.v201101211721] bundle.
Not sure why the IDE does and where it comes from, though.
$ find /var/lib/hudson/jobs/test2/builds/2011-08-30_08-23-26/archive//targetPlatform -name "*logging.source*"
/var/lib/hudson/jobs/test2/builds/2011-08-30_08-23-26/archive//targetPlatform/plugins/org.apache.commons.logging.source_1.0.4.v201101211617.jar
Edit2:
Looks like Buckminster does not honor if one changes the target platform in the IDE (selecting "Set as Target Platform" on a target definition file). After a full restart of Eclipse buckmnster picked up the matching target platform and now the IDE builds fail, too. So now it's at least matching behavior.
Now I just need to figure out why my previous buckminster build for the target platform did not include the logging source although I use
<cq:property key="buckminster.download.source" value="true"/>
<cq:property key="buckminster.convert.source" value="true"/>
in my cquery (created new thread for that problem).
P.S.
Can I ask buckminster to only build the binary plugins and ignore the source ones?
[Updated on: Tue, 30 August 2011 22:14] Report message to a moderator
|
|
|
|
|
Re: Buckminster build in hudson with precreated target platform [message #722730 is a reply to message #722687] |
Tue, 06 September 2011 15:07 |
|
On 2011-09-06 16:16, Lothar Werzinger wrote:
> Is there a way to tell buckminster not to fail for source plugins on the resolve of the build? That way I at least would
> have a workaround until the issue with the missing source plugin can be researched.
>
Add an advice node for pattern \.source$ and check "Skip Component". Make sure it's the first advice.
Regards,
Thomas Hallgren
|
|
|
|
Powered by
FUDForum. Page generated in 0.04697 seconds