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.
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.
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.
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.
Step 5 − Click Create VCS root as shown in the following screenshot.
Step 6 − In the next screen that comes up, perform the following steps −
Step 7 − Click Create and the repository is registered as shown below:
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.
Step 9 − Provide a name for the Build Configuration. Here, it is named as DemoBuild and then click Create.
Step 10 − Choose the VCS repository created earlier, choose the name ‘App’ and click Attach.
Step 11 − Configure the build steps by clicking the ‘configure build steps manually’ hyperlink.
Step 12 − Enter the following details −
Step 13 − In the next screen, click Run.
The progress in build of the application is observed.
A successful screen appears which is a good sign that the solution is build properly.
Visit build log to see all the steps that were covered by the Continuous Integration server as shown in the following screenshot.
Continuous Integration Related Interview Questions
|Testing Tools Interview Questions||Linux Interview Questions|
|Framework7 Interview Questions||Maven Interview Questions|
|Automation Testing Interview Questions||Jenkins Interview Questions|
|IBM Integration Bus Interview Questions||DevOps Interview Questions|
|Spring Batch Interview Questions|
Continuous Integration Tutorial
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.