Wes has the right doc.

Depending on your needs, you may want RequestedFor instead.  They are different 
for CI builds where the RequestedBy is the system account but the RequestedFor 
is the developer whose checkin kicked off the build (assuming you are building 
checkins individually).

RequestedBy

Output parameter. Specifies the person who requested the build.

RequestedFor

Output parameter. Specifies the person on whose behalf the build was requested.


Buck


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wesley MacDonald
Sent: Friday, May 30, 2008 1:08 PM
To: [email protected]; [email protected]
Subject: RE: [OzTFS] Need to supply NTLM credentials to build script.

Hi,

I think you want the "RequestedBy" property.

You can see the information here on mSDN: 
http://msdn.microsoft.com/en-us/library/bb399152.aspx

Wes MacDonald

________________________________
From: [EMAIL PROTECTED] on behalf of Livengood, Jason (ProSource Sol.)
Sent: Fri 5/30/2008 11:46 AM
To: [email protected]
Subject: [OzTFS] Need to supply NTLM credentials to build script.

 Hi and thank you for taking a moment. I have a build script that calls some 
executables and logs into a completely different system (not a build box per 
say) and pushes the newly created build into this separate system (think of it 
like a vault, if you will). This happens in our "AfterDrop" target.  Up until 
now we have been using a kind of "universally known" username for this to login.

  The problem is now the owners of the system want to begin to enforce 
separation of duties. I.E. they want to know what developer, or who 
specifically, placed the build into the system. We cannot use the universally 
known username anymore. A universally known password will still be used.



   So what I need is a way for the build script to know what developer has 
launched the build process. Then I need a way to capture the ntlm username of 
the developer and supply it to my "AfterDrop" target which in turn will supply 
it to the separate system. I would think there should be a way to doi that??? 
Any help or suggestions provided would be greatly appreciated. Below is my 
AfterDrop target.



 <Target Name="AfterDropBuild">

            <Exec Command="&quot;F:\ChangemanDS\MKI\RAR&quot; a 
F:\ChangemanDS\MKI\&quot;$(BuildNumber)&quot; -w 
&quot;$(DropLocation)\$(BuildNumber)\&quot; -r -y" />

            <Exec Command="&quot;F:\ChangemanDS\MKI\RAR&quot; a 
F:\ChangemanDS\MKI\Sources -w &quot;$(SolutionRoot)\&quot; -r -y" 
ContinueOnError="True" />

            <Exec Command="&quot;E:\Program Files\Serena 
Software\Changeman\DS\Client\CMNXFER&quot; -user:UNIVERSALLY KNOWN 
-password:UNIVERSALLY KNOWN -host:SERPROD.NTL-CITY.COM -at -tt:pmi 
-file:&quot;$(BuildNumber)&quot; -fromarea:MKI_OHCLEIIS1369_S 
-toarea:MKI_TFS_PRD -topath:R:\Repository\Prod\MKI_TFS_PRD 
-desc:&quot;Automated Checkin by Team Foundation Server OHCLEIIS1369&quot; 
-prodovr:y -newfile:y -dp -v" />

            <Exec Command="&quot;E:\Program Files\Serena 
Software\Changeman\DS\Client\CMNPROJ&quot; -user:UNIVERSALLY KNOWN 
-password:UNIVERSALLY KNOWN -host:SERPROD.NTL-CITY.COM -actattach 
-project:MKI_TFS_BUILD -addattach -homearea:MKI_TFS_PRD 
-homepath:R:\Repository\Prod\MKI_TFS_PRD -file:&quot;$(BuildNumber)&quot; 
-setrelpath -file:&quot;$(BuildNumber)&quot; -homearea:MKI_TFS_PRD 
-Homepath:R:\Repository\Prod\MKI_TFS_PRD -newrelpath:.\ /v" />

            <Exec Command="&quot;E:\Program Files\Serena 
Software\Changeman\DS\Client\CMNXFER&quot; -user:UNIVERSALLY KNOWN 
-password:UNIVERSALLY KNOWN -host:SERPROD.NTL-CITY.COM -at -tt:pmi 
-file:&quot;Sources.rar&quot; -fromarea:MKI_OHCLEIIS1369_S -toarea:MKI_TFS_PRD 
-topath:R:\Repository\Prod\MKI_TFS_PRD -desc:&quot;Automated Checkin by Team 
Foundation Server OHCLEIIS1369&quot; -prodovr:y -newfile:y -dp -v" 
ContinueOnError="True" />

            <Exec Command="&quot;E:\Program Files\Serena 
Software\Changeman\DS\Client\CMNPROJ&quot; -user:UNIVERSALLY KNOWN 
-password:UNIVERSALLY KNOWN -host:SERPROD.NTL-CITY.COM -actattach 
-project:MKI_TFS_Source -addattach -homearea:MKI_TFS_PRD 
-homepath:R:\Repository\Prod\MKI_TFS_PRD -file:Sources.rar -setrelpath 
-file:Sources.rar -homearea:MKI_TFS_PRD -Homepath:R:\Repository\Prod\MKI 
-newrelpath:.\ -v" ContinueOnError="True" />

      </Target>











Jason Livengood

216-257-9454

-------------------------------------------------------------------------------------------

***National City made the following annotations

-------------------------------------------------------------------------------------------
This communication is a confidential and proprietary business communication. It 
is intended solely for the use of the designated recipient(s). If this 
communication is received in error, please contact the sender and delete this 
communication. 
===========================================================================================
OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/
Powered by mailenable.com, supported by www.readify.net
OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/
Powered by mailenable.com, supported by www.readify.net



OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/

Powered by mailenable.com, supported by www.readify.net

Reply via email to