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

Fail and continue

Hi experts:

I have a build in RTC that compile, package, deploy to a websphere appserver, and run some test.

I create and activity (using the startBuildActivity ant task) for the test phase, and some children activities (for every service I have to test).

ex.
Test services
- Test service 1
- Test service 2
- Test service 3

What I want to accomplish is:
Is Test service 2 fail, mark this activity as failed and continue with the other tests. I mean, I dont want to fail the complete build.

How can I do this?

Thank in advance

0 votes



One answer

Permanent link
Hi,

i am not completely sure about this, but I would play around with the attribute:

failOnError - If true (the default), the task fails if it encounters an error. If false, some errors are ignored and the task is completed.

It is available for several items e.g. start build activity. See Ant Task Reference:

http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.build.doc/topics/r_ant-tasks.html

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: Aug 18 '11, 5:10 p.m.

Question was seen: 3,032 times

Last updated: Aug 18 '11, 5:10 p.m.

Confirmation Cancel Confirm