It's all about the answers!

Ask a question

Accessing build-requester information


Shahar Sperling (1144) | asked Jan 02 '12, 2:34 a.m.
Hi,
Concerning the ANT build of RTC.
Is there a way to get the user who requested the build?
On a build server, there is usually a fixed user, which is not necessarily the build requester.
When running a personal build, RTC "knows" the requesting user:
"build ID (personal build by John Doe)"
Is there a way to get this information in the build process? some property that holds it?

Thanks,
Shahar

8 answers



permanent link
Spencer Murata (2.3k115971) | answered Apr 04 '12, 10:53 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
There is no other way currently to get the rest of the contributor information. You would need to put in a RFE to request that.

~Spencer

Thanks Spencer,
Scripting this will require managing a list of users + e-mails. I don't want to handle this. Or is there some other solution?
Hagit

There isn't a way to do that directly from the build properties, although you could script something based on the user id to gather all of the contributor details.

~Spencer

Hi Shanar,

What you're looking for is ${buildRequesterUserId}
This was added in 3.0.1, see https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/65619


Hi,
The buildRequesterUserId is fine, but it gives the user's mail. On RTC UI, you can see the real name. Is there a way to get also the user name into a property?
Thanks
Hagit

permanent link
Hagit Segev (3652) | answered Apr 04 '12, 9:59 a.m.
Thanks Spencer,
Scripting this will require managing a list of users + e-mails. I don't want to handle this. Or is there some other solution?
Hagit

There isn't a way to do that directly from the build properties, although you could script something based on the user id to gather all of the contributor details.

~Spencer

Hi Shanar,

What you're looking for is ${buildRequesterUserId}
This was added in 3.0.1, see https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/65619


Hi,
The buildRequesterUserId is fine, but it gives the user's mail. On RTC UI, you can see the real name. Is there a way to get also the user name into a property?
Thanks
Hagit

permanent link
Spencer Murata (2.3k115971) | answered Apr 04 '12, 9:37 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
There isn't a way to do that directly from the build properties, although you could script something based on the user id to gather all of the contributor details.

~Spencer

Hi Shanar,

What you're looking for is ${buildRequesterUserId}
This was added in 3.0.1, see https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/65619


Hi,
The buildRequesterUserId is fine, but it gives the user's mail. On RTC UI, you can see the real name. Is there a way to get also the user name into a property?
Thanks
Hagit

permanent link
Hagit Segev (3652) | answered Mar 27 '12, 7:44 a.m.
Hi Shanar,

What you're looking for is ${buildRequesterUserId}
This was added in 3.0.1, see https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/65619


Hi,
The buildRequesterUserId is fine, but it gives the user's mail. On RTC UI, you can see the real name. Is there a way to get also the user name into a property?
Thanks
Hagit

permanent link
Shahar Sperling (1144) | answered Jan 03 '12, 11:19 a.m.
Thank you!
That's exactly what I wanted.
I use RTC 3.0.1.1 but the editor's auto-complete didn't show it. My "boulder" link was also set 3.0.0...

Thanks again,
Shahar

permanent link
David Castellanos (20686) | answered Jan 03 '12, 9:24 a.m.
Hi Shanar,

What you're looking for is ${buildRequesterUserId}
This was added in 3.0.1, see https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/65619

permanent link
Shahar Sperling (1144) | answered Jan 03 '12, 4:19 a.m.
Hi,

I wanted to know if it is available within the build XML (Ant property).
There is information that RTC has (in its own data tables?) which is apparently not available as properties build XML.
I wanted to know if the information available in RTC (the column mentioned) in a property.

Thanks,
Shahar

permanent link
David Castellanos (20686) | answered Jan 03 '12, 12:58 a.m.
Hi,

Unless I missed something, you should be able to see who requested a build.
In the build results view, you can add the column 'Requestor' (click on the upside down triangle -> Columns -> Requestor).
For every build result artifact, there should also be a field named 'Requested by'.

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.