Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Ignoring build errors

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 10 '07, 9:47 a.m.

Question was seen: 9,468 times

Last updated: May 10 '07, 9:47 a.m.

Confirmation Cancel Confirm