Continuous Integration Creating a Project in TeamCity - Continuous Integration

How to create a project in Continuous Integration TeamCity?

As the initial code works on the build server and the source code is located in the Git repository, a project need to be created in Continuous Integration server by the following steps:

Step 1 − Login to the TeamCity software. Visit the url on Continuous Integration server − http://localhost:8080/login.html.

TeamCity Software

Login to the server by entering the admin credentials.

Step 2 − Once logged in, home screen appears and click Create Project to start a new project.

Create Project

Step 3 – Provide a project name and click create to start a project. As shown in the following screenshot, ‘Demo’ is the name given to the project.

Project Name Demo

Step 4 − The next step is to mention the Git repository which will be used in our project. The code is picked up from the Git enabled repository for CI server. Already the project folder is enabled to be a Git enabled repository. A VCS root is created in the TeamCity, by clicking VCS Roots in the project’s main screen.

VCS Root

Step 5 − Click Create VCS root as shown in the following screenshot.

Create VCS Root

Step 6 − In the next screen that comes up, perform the following steps −

  • Mention the type of VCS as Git.
  • Give a name for the VCS root, here the name given is App.
  • Give the Fetch url as C:DemoSimple – This is out git enabled repository.
  • If you scroll down the screen, you will get a Test connection button. Click it to ensure that you can successfully connect to the Git enabled repository.

Test Connection Button

Test Connection Button Appears

Step 7 − Click Create and the repository is registered as shown below:

Repository Registered

Step 8 − A build configuration is created which will be used to build the project. Go to your project screen in TeamCity → General Settings. Click Create Build Configuration.

TeamCity General Settings

Step 9 − Provide a name for the Build Configuration. Here, it is named as DemoBuild and then click Create.

Demo Build

Step 10 − Choose the VCS repository created earlier, choose the name ‘App’ and click Attach.

VCS Repository

Step 11 − Configure the build steps by clicking the ‘configure build steps manually’ hyperlink.

Configure Build Steps

Step 12 − Enter the following details −

  • Choose the Runner type as MSBuild.
  • Give an optional name for the step name.
  • Give the name of the file which needs to be built. Whenever MSBuild was specified, Simple.csproj is used.
  • Choose the MSBuild version as ‘Microsoft Build Tools 2013’.
  • Choose the MSBuild ToolsVersion as 12.0.
  • Scroll down the page to Save the settings.

MSBuild Tool Version

MSBuild Tool Version 12

Step 13 − In the next screen, click Run.

Build Step Settings

The progress in build of the application is observed.

Application in Progress

A successful screen appears which is a good sign that the solution is build properly.

Successful Screen

Visit build log to see all the steps that were covered by the Continuous Integration server as shown in the following screenshot.

Continuous Integration Server

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Continuous Integration Topics