It's all about the answers!

Ask a question

Ignoring build errors


Ron de Jong1 (1611) | asked May 10 '07, 9:47 a.m.
Hi,

Im trying to use CheckStyle in our build, so I added a task and a
logpublisher action to the build file. When I do this, I get some errors
reported by CheckStyle, which is OK. What I like to change is that I do not
want the build to fail on those errors. E.g. Id like to keep an eye on the
trend on the amount of coding style errors, but I do not want the build to
fail with every error that gets introduced.

What are the options to do this?

Thanks,
Ron de Jong

One answer



permanent link
Martha (Ruby) Andrews (3.0k44251) | answered May 11 '07, 8:33 p.m.
JAZZ DEVELOPER
Sounds like the build is failing because the CheckStyle task is
returning an error exit code. The Jazz Build Engine will automatically
set a build to failed if the ANT process exits with an error.

Does the CheckStyle have a flag for whether or not to fail when it
encounters an error? If so, set the flag not to fail.

Martha

Ron de Jong wrote:
Hi,

Im trying to use CheckStyle in our build, so I added a task and a
logpublisher action to the build file. When I do this, I get some errors
reported by CheckStyle, which is OK. What I like to change is that I do not
want the build to fail on those errors. E.g. Id like to keep an eye on the
trend on the amount of coding style errors, but I do not want the build to
fail with every error that gets introduced.

What are the options to do this?

Thanks,
Ron de Jong

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.