Installing and setting Team Foundation Server as CI

From Logic Wiki
Jump to: navigation, search


Step by step

  • Install stand alone SQL Server with SSRS - (Restart Needed)
NOTE : TFS 2015 require SQL Server 2012 with Service pack 1 or above 
    • Click Mixed mode authentication and set sa account as sa - Password1
    • Full-text search feature should be installed
    • Check SSRS Configuration Manager to see path/url is created
  • Install TFS - (Restart Needed)
    • When it asks sharepoint user (Service Account Tab) click the link underneath the page to configure SSRS manually. Because it sometimes cant find SSRS url
      • Click Change Database under Database node and click Create new report server database
      • Click Apply under Web Service URL to accept given url
      • Click Apply under Report Manager URL to accept given url
      • Set an report Execution Account
        • r1p-tfs03\SSRSExec - Password1
    • Finally set an account in Service Account Tab of TFS settings wizard. (I gave mine to speed up the process but a new user should be created for this)
    • At the end of installation it gives TFS url like that http://r1p-tfs03:8080/tfs
  • Install Web Deploy http://www.iis.net/downloads/microsoft/web-deploy

  • Create a Team Project Collection / with a new database
  • Define a Build Process to Support Continuous Integration
    • In Team Explorer, make sure you are connected to the team project (Keyboard: Ctrl + 0, C), and then open the Builds page (Keyboard: Ctrl + 0, B).
    • Choose the New Build Definition link or select a build, open its context menu, and choose Edit Build Definition.
    • If a TF225001 error message appears, configure a build controller. To create or modify a build controller from the build server
      • Log on to the build server.
      • From Windows Start, run Team Foundation Administration Console.
      • In the tree pane of the Team Foundation Administration Console, expand the name of the server, and then choose the Build Configuration node.
      • If the Configure Installed Features Configure Installed Features message appears, see Deploy a build server.
      • On the Build Configuration page:
        • If a controller is not listed, choose New Controller.
        • If a controller is already listed: Build controller, Choose Properties.
        • The Build Controller Properties dialog box appears.
    • On the Trigger tab, choose Continuous Integration.
      • If your developers have to wait too long for their check-ins to build, you might want to choose Rolling builds instead. This trigger causes the build system to build multiple check-ins together.
    • On the Source Settings tab:
      • In the Working folders table, specify the version-control folders that contain the files that your build process requires.
      • To ensure that your build process functions correctly and to improve performance, include all folders, and only these folders, that contain files that your build process requires. For more information about how to specify these folders
    • To improve performance, on the Build Defaults tab, choose This build does not copy output files to a drop folder
    • On the Process tab, in the Build process parameters table under Build, specify the solutions or code projects that you want to build.
    • On the Process tab, set the build process parameters to ensure that check-ins meet the specific standards of code quality for your team without delaying your developers unnecessarily.
    • On the Process tab, If using Visual Studio 2013 or newer and TFS 2010, set MSBuild argument /p:VisualStudioVersion=10.0
      • If Visual Studio Version is above 2010 it's better to install MSBuild on TFS by clicking https://www.microsoft.com/en-us/download/details.aspx?id=40760
      • After installing MSBuild Copy C:\Program Files (x86)\MSBuild\12.0 folder content into C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0
      • Finally copy C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications to C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications


    • Specify build process options on the other tabs.

https://msdn.microsoft.com/en-us/library/bb558973.aspx

To Connect multiple Team Foundation Servers at the same time

  • Click "Select Team Project" in Visual Studio - Team Explorer
  • Click Servers button in this window
  • Click Add and add new server info to connect