问题
Looking at a recent build log I noticed the CCNetUser property is set to empty, should it not be the user who has requested the build?
<cruisecontrol project="...">
<parameters>
....
<parameter name="$CCNetUser" value="" />
I want the username of the person who's just requested a force build so that I can send them an e-mail.
回答1:
The CNetUser property can be empty if it's not a force build. If the build is triggered by a source control/project trigger then the property is empty. If the build is forced via the dashboard and not cctray the property may be empty too.
来源:https://stackoverflow.com/questions/3880984/cruisecontrol-net-ccnetuser-property-empty