• Setup the workspace (mapped to local deployment script folder)
    • Setup a local folder as the workspace (the home for deployment script for all projects and environments)
    • “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf” workspace /new <NewWorkSpaceName> /collection:http://<TFSServerName&gt;:8080/tfs/<TeamProjectCollectionName>/login:<UserNameWithDomain>,<Password> /noprompt
    • Map the workfold
  • get the latest from TFS deployment script repository
    • “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf” workspaces /collection:http://<TFSServerName&gt;:8080/tfs/<TeamProjectCollectionName> /login:<UserNameWithDomain>,<Password>
    • “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf” get * /login:<UserNameWithDomain>,<Password>
    • “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf” get “C:\Program Files\MySCM\Agent\Deploy/*” /version:T /login:<UserNameWithDomain>,<Password> /all
  • Xcopy
    • cmd /c xcopy “$(BuildLocation)\_SCM\DeploymentScripts” “$C:\Program Files\MySCM\Agent\Deploy” /q /y
Advertisements