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

BuildResultUUID while using Buildforge Build Engine

Hi,

I have a RTC buildDefnition which is Jazz build Engine based.

This build definition is calling another build Definition which is BuildForge Build Engine based.

So

BDef 1 -> JBE

BDef 2 -> BForge

BDEF1 ant script is calling BDEF2 as its execution item using <requestTeamBuild> macro. so I'm able to get the buildrequestUUID of BDEF2.

Now my question is ,

1. how can I get the buildresultUUID of BDEF2 , since it is BForge Engine based, is it really possible ?

2. from BDEF2 , I want to create a tag in BDEF1 build result, to allow it to be searched. How can I do it ?

Any quick responses would be appreciated.

0 votes



2 answers

Permanent link
Hi,

I have a RTC buildDefnition which is Jazz build Engine based.

This build definition is calling another build Definition which is BuildForge Build Engine based.

So

BDef 1 -> JBE

BDef 2 -> BForge

BDEF1 ant script is calling BDEF2 as its execution item using <requestTeamBuild> macro. so I'm able to get the buildrequestUUID of BDEF2.

Now my question is ,

1. how can I get the buildresultUUID of BDEF2 , since it is BForge Engine based, is it really possible ?

2. from BDEF2 , I want to create a tag in BDEF1 build result, to allow it to be searched. How can I do it ?

Any quick responses would be appreciated.


Hi,

1. I was wondering if your scenario would allow you to switch from using requestTeamBuild to the startTeamBuild Ant task. The startTeamBuild task allows you to set an attribute named 'resultUUIDProperty' with a value that will hold the buildResultUUID. You can then use that buildResultUUID for the issue in your second question.

Example startTeamBuild:
<startTeamBuild repositoryAddress="${repositoryAddress}"

userId="${userId}"
password="${password}"
buildDefinitionId="${myBuildDefinitionId}"
engineId="${myEngineId}"
resultUUIDProperty="buildResultUUID"
label="test build"
autoComplete="false"
verbose="true" />


2. With the buildResultUUID from the startTeamBuild task, you could update the label with the buildResultPublisher task.

Example buildResultPublisher:
<buildResultPublisher label="${newBuildLabel}"

buildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}"
userId="${userId}"
passwordFile="${passwordFile}"
verbose="true"/>


Brent Ulbricht
Developer/Lead - RTC Build

0 votes


Permanent link
Thanks Brent !

but the "buildResultUUID" property won't overwrite the earlier property set for same Ant file.

i.e. Ant build.xml ( for BReq1)

.....
...
..
BuildResultPublisher Publish result of Req1
...
..
requestTeamBuild Bdef2 /// Call the buildForge project
</target>
// ##### end of xml ####

So does startTeamBuild would still give me right result as below ?

Also,

Is there any way to search the builds ( based on labels) other than using Tags ? in other words , is it necessary to have tags to search builds ?








Hi,

I have a RTC buildDefnition which is Jazz build Engine based.

This build definition is calling another build Definition which is BuildForge Build Engine based.

So

BDef 1 -> JBE

BDef 2 -> BForge

BDEF1 ant script is calling BDEF2 as its execution item using <requestTeamBuild> macro. so I'm able to get the buildrequestUUID of BDEF2.

Now my question is ,

1. how can I get the buildresultUUID of BDEF2 , since it is BForge Engine based, is it really possible ?

2. from BDEF2 , I want to create a tag in BDEF1 build result, to allow it to be searched. How can I do it ?

Any quick responses would be appreciated.


Hi,

1. I was wondering if your scenario would allow you to switch from using requestTeamBuild to the startTeamBuild Ant task. The startTeamBuild task allows you to set an attribute named 'resultUUIDProperty' with a value that will hold the buildResultUUID. You can then use that buildResultUUID for the issue in your second question.

Example startTeamBuild:
<startTeamBuild>


2. With the buildResultUUID from the startTeamBuild task, you could update the label with the buildResultPublisher task.

Example buildResultPublisher:
<buildResultPublisher>


Brent Ulbricht
Developer/Lead - RTC Build

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: Mar 25 '11, 5:00 a.m.

Question was seen: 5,874 times

Last updated: Mar 25 '11, 5:00 a.m.

Confirmation Cancel Confirm