It's all about the answers!

Ask a question

Failing instead of completing build activities - possible?


Dan Rivett (1211115) | asked Feb 04 '10, 4:55 a.m.
Hi,
I want to use build activities to delineate my build, however I've noticed that build activities don't fail as I expect them to.

Imagine I have a build with a target as follows (I've already tried this)

<startBuildActivity label="Get file" autocomplete="true" ... />
<fail message="testing" />
<startBuildActivity label="Process file" autocomplete="true" ... />

The build obviously fails, but the build activity "Get file" is marked as complete even though a failure occurred before the next <startBuildActivity> or the end of the build script when it's automatically completed?

In this scenario I want the build activity to be marked as failed so I can easily pinpoint whereabouts in the build a failure has occurred.

This seems like a fairly normal request so have I missed something, as from looking around, at the API too, there doesn't seem to be a way to mark a build activity as failed, only completed!

Thanks in advance.

2 answers



permanent link
David Olsen (5237) | answered Feb 04 '10, 2:38 p.m.
JAZZ DEVELOPER
dansoton wrote:
from looking around, at the API too, there doesn't seem to be a way to
mark a build activity as failed, only completed!

Correct. Build activities are not intended to show success or failure.
Their only purpose is to show progress.

I don't know if there is a reason behind not allowing activities to
fail, or if it is just something that the original Jazz Build team
developers didn't think of. You should open an enhancement request.

permanent link
Dan Rivett (1211115) | answered Feb 09 '10, 10:20 a.m.
Thanks, seems odd that failure isn't taken into account when showing progress.

Anyway I've raised enhancement 105547 to track this issue.

Thanks.

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.