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

BuildResultUUID and Build status

I'm so confused and I can't find any information on how to accomplish what I want.

First I had a problem with my ant build script exiting if there was a compile error and not publishing the compile log. I was able to get past that by using the Try/Catch/Finally functions in Ant. However there are times when RTC would report the build as completed even though the compile failed but Ant would run the catch statements indicating that the compile failed. So I want to be able to set the build status myself but havn't figured out how.

I also read something somewhere about why when I print the BuildResultUUID I get garbage out. BuildResultUUID = _O6msQSAwEeGtqaJqkW9a_Q

Where is some information on how I can set the build status values??

Here is the output from my script, notice the line runBuild failed, that line is located in the catch part of my script which means the build failed but RTC says the build was successful:

C:\workspace\BldTools\testbuild.xml:69: *** VC9 failed *** Target='c:\workspace\src/src.sln'
runBuild failed
Publish the compile log...

BUILD SUCCESSFUL

0 votes



2 answers

Permanent link
when I print the BuildResultUUID I get garbage out. BuildResultUUID = _O6msQSAwEeGtqaJqkW9a_Q


That is actually correct. That is literally the UUID (unique identifier) of the build result.


So I want to be able to set the build status myself but havn't figured out how.


If somewhere in your script you decided that the build failed and should stop, you can use this completeTeamBuild ant task to do so. You can use the 'status' argument with a value of ERROR for example to indicate the build failed. See this link for additional information: http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.build.doc/topics/r_completebuild.html

0 votes


Permanent link
when I print the BuildResultUUID I get garbage out. BuildResultUUID = _O6msQSAwEeGtqaJqkW9a_Q


That is actually correct. That is literally the UUID (unique identifier) of the build result.


So I want to be able to set the build status myself but havn't figured out how.


If somewhere in your script you decided that the build failed and should stop, you can use this completeTeamBuild ant task to do so. You can use the 'status' argument with a value of ERROR for example to indicate the build failed. See this link for additional information: http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.build.doc/topics/r_completebuild.html

Thanks David!! Once I finally worked in the completeTeamBuild the script started to work the way I expected. I find it strange that the completeTeamBuild as a attribute for build status but the completeBuildActivity does not. Also the problem I was dealing with was the fact if the build failed and I ran the completeBuildActivity, RTC would report the build as completed even though it had errors. The reason I was doing the completeBuildActivity was so I could close the compile activity.

I wanted to respond to this thread in case someone else has this problem.

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: Dec 06 '11, 7:37 p.m.

Question was seen: 5,246 times

Last updated: Dec 06 '11, 7:37 p.m.

Confirmation Cancel Confirm