문제

I would like to get in a build activity the build creator.

Is it possible to get them from the CodeActivityContext?

How can i do this?

도움이 되었습니까?

해결책

You can get IBuildDetail object for build from context extensions (or pass it to activity as argument)

context.GetExtension<IBuildDetail>()

Properties from there will provide what you need

http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.client.ibuilddetail.aspx

Public property RequestedBy Gets the user who requested this build.

Public property RequestedFor Gets the user for whom this build was requested.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top