Jul 2, 2011

TFS 2010 Automated Build and Deployment


Method – Copy DirectorySteps:
1.       Create a shared folder, for Build drop location.
2.       Create a shared folder, to use as virtual directory.
3.       Create a custom Build process template.
·         Open the folder which contains Build Process Template
·         Create a copy of DefaultTemplate; give an appropriate name
·         Open Source Control Explorer in Visual Studio
·         Right click on “BuildProcessTemplates” folder under the team project, add the copy of DefaultTemplate using “Add item to folder” option.
·         Double click on copy of DefaultTemplate and open it. Follow the steps given in below mentioned link to customize the template.
o   http://geekswithblogs.net/jakob/archive/2010/09/01/tfs-team-build-2010-how-to-place-the-build-output.aspx·         “Check-in” the template file.
4.       In build definition select the customized Template.
Note : If it does not appear in the list, follow the steps given below.
·         In build definition, open the Process section
·         Expand Show Details under Build process template
·         Click on “New” button. Select the radio button with “Select an existing xaml”
·         Click OK. Select the Customized Template for build process.
5.       Configure the build and save it. Trigger the build; on successful build, files from drop location is copied to the shared virtual directory (without creating a new folder. Any file with same name will be replaced).

No comments:

Post a Comment

Search for