It's all about the answers!

Ask a question

indicating faiure with completeTeamBuild ant task


Mark Miller (41118) | asked Oct 28 '08, 2:43 p.m.
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

One answer



permanent link
Ryan Manwiller (1.3k1) | answered Oct 28 '08, 4:54 p.m.
JAZZ DEVELOPER
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

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.