Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

indicating faiure with completeTeamBuild ant task

I am trying to use the ant tasks to implement a build not using the BuildEngine and I can not figure out what strings are possible values for the status attribute. When I tried Failed I got the following error:

BUILD FAILED
/home/mark/rtcbuild.xml:74: Failed is not a legal value for this attribute

0 votes



One answer

Permanent link
Valid values are OK, WARNING, ERROR

I will file a bug to fix the doc.

Note, I think the best practice here is to actually not set the status with
the CompleteBuildTask. But, instead, to set status with the
LogPublisherTask.

For example, if you set status="ERROR" on the LogPublisherTask, publishing a
log file that explains why the build failed (create a temporary one if you
have to). Then that log will show up on the Logs tab of the build result
with a little red x decoration, and the overall build status will be ERROR
(the overall status is always the most severe of the contributed status).

The decoration helps the user see why the build failed.

If you just use CompleteBuildTask, the overall build can be ERROR, but the
user may have no idea why or where to look.

---
Ryan Manwiller
Jazz Team

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: Oct 28 '08, 2:43 p.m.

Question was seen: 5,279 times

Last updated: Oct 28 '08, 2:43 p.m.

Confirmation Cancel Confirm