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

Failing instead of completing build activities - possible?

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.

0 votes



2 answers

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

0 votes


Permanent link
Thanks, seems odd that failure isn't taken into account when showing progress.

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

Thanks.

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: Feb 04 '10, 4:55 a.m.

Question was seen: 5,746 times

Last updated: Feb 04 '10, 4:55 a.m.

Confirmation Cancel Confirm