Accessing build-requester information
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
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
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'.
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'.
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
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
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
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,
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
~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
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
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
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
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
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
~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