powershell - Unable to determine the source control server on TFS build server -


how use tf history command line on tfs 2013 build server?

when try call command line tf history c:\builds\1\myproj\mybuild\src\dev on tfs build server get:

there no working folder mapping "c:\builds\1\myproj\mybuild\src\dev`

when try powershell get-tfsitemhistory c:\builds\1\myproj\mybuild\src\dev on tfs 2013 build server, get:

unable determine source control server.

when open visual studio on build server , in team explorer try configure workspace mapping folder , get:

"the working folder c:\builds\1\myproj\mybuild\src\dev in use workspace 10_1_mhatfsbld01;mhabldsvc on computer mhatfsbld01."

*mha name of team project collection

regarding "no working folder error", need set server:

 $tfs = get-tfsserver "http://server:8080/tfs/collection"  get-tfsitemhistory '$/yourteamproject/myproj/src/dev' -server $tfs 

obviously, need adjust specific tfs source structure.

regarding issue build not recognizing tfs cmdlets, try command in windows powershell x86 command prompt on build agent. if still fails need install tfs cmdlets and/or fix powershell run in 32 bit mode. see stackoverflow.com/questions/35292971


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -