Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Mark a build as failed when the compile failed

On 02/09/2015 11:00 PM, Samuel Wu wrote:

Hi Mickael,
Unfortunately when I changed the Fail Mode to At_End, the build failed.

At least now, you know they're failing. It's better ;)

https://hudson.eclipse.org/webtools/job/WTP-R3_7_Integration/310/
https://hudson.eclipse.org/webtools/job/WTP-R3_6_3_Maintenance/160/
It looks that the problem was caused by test.
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.20.0:test (default-test) on project org.eclipse.jst.server.core.tests: An unexpected error occured (return code 143). See log for details. -> [Help 1]

Fir this one, you'll need to have a look at the details in the log for this specific bundles. Could be a ClassNotFound, a Timeout, a configuration error...

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.20.0:test (default-test) on project org.eclipse.wst.wsi.tests: No tests found. -> [Help 1]

This bundle builds as a nested jar ( http://git.eclipse.org/c/webservices/webtools.webservices.git/tree/tests/org.eclipse.wst.wsi.tests/build.properties#n2 ) and Tycho doesn't like it. So you should just build it as a regular bundle, and if a subset of it has to be a nested jar, extract it in its dedicated source folder and build only this source folder as a nested jar. Test classes have to be at the root of the bundle.
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top