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

Thank you so much, Mickael, for the suggestion. It looks that WTP build already has  maven.test.error.ignore=true and maven.test.failure.ignore=true and I think AT_END sounds like a good candidate for us. I've made the change and running a build.

Best Regards

Samuel Wu

Inactive hide details for Mickael Istria ---02/09/2015 10:41:29 AM---On 02/09/2015 04:29 PM, Samuel Wu wrote: >Mickael Istria ---02/09/2015 10:41:29 AM---On 02/09/2015 04:29 PM, Samuel Wu wrote: >

From: Mickael Istria <mistria@xxxxxxxxxx>
To: cbi-dev@xxxxxxxxxxx
Date: 02/09/2015 10:41 AM
Subject: Re: [cbi-dev] Mark a build as failed when the compile failed
Sent by: cbi-dev-bounces@xxxxxxxxxxx





On 02/09/2015 04:29 PM, Samuel Wu wrote:

    The WTP build currently keeps going as usual when a compile problem happens and marks the build as a successful one. We need to go to check the log to figure out whether the build fails. I wonder how to change the build to mark it as failed when a compile error happens.

In the Maven step of your CI job https://hudson.eclipse.org/webtools/job/WTP-R3_7_Integration/configure
In the advanced settings, there is a parameter called "FAIL_MODE", which is set to Never. You should either use NORMAL or AT_END.

Setting FAIL_MODE to Never is contrary to the goal of continuous build: you want to know about failures loudly and ASAP. I suggest you check job configuration history to find out who changed that, and discuss with the author of this change what are the best and worst practices of CI builds ;)

    Due to the historical reason, there are a few JUNIT tests fail during the build. I guess that's the reason the build has been set up this way. I don't think we can clean up the JUNIT tests right now. It would be great if the build can differentiate the test errors and the compile ones and handle them differently.

There are the maven.test.error.ignore=true and maven.test.failure.ignore=true settings to configure the behaviour regarding tests. You should only use this one and restore the FAIL_MODE to a better value.
--
Mickael Istria
Eclipse developer at
JBoss, by Red Hat
My blog - My Tweets_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cbi-dev

GIF image


Back to the top