Book Image

TeamCity 7 Continuous Integration Essentials

By : Volodymyr Melymuka
Book Image

TeamCity 7 Continuous Integration Essentials

By: Volodymyr Melymuka

Overview of this book

<p>Nowadays, Agile application development is usually done at a fast pace when many developers are working on the same piece of code. Every so often, this becomes a real challenge if there&rsquo;s no permanent control over consistency of the project source. It is often impossible to force lazy and/or busy programmers to execute tests before and after each of their commits. Continuous Integration is a well-known life saver for distributed development environments with TeamCity being one of the best and easy-to-use instruments utilizing it. <br /><br />"TeamCity 7 Continuous Integration Essentials" is the first book of its kind showing in a sequential approach &mdash; how to start implementing Continuous Integration &mdash; over generic projects and enclosing rich features of the TeamCity as a project gradually evolves.<br /><br />Learn how to do a quick-start with TeamCity and suite most of the common needs right out of the box. As the project grows and more sophisticated requirements to the build process arise, the examples from this guide will assist you showing how to unleash TeamCity hidden powers and adjust advanced features to bring stability into the distributed development process.<br /><br />You will learn how to start a new Java project from scratch generating a working &ldquo;skeleton&rdquo; of web application using Apache Maven and later adding some business logic and writing certain tests. After that, you will know how to perform a swift attach of TeamCity facilities to your project and eventually change it into rich featured information source describing the current state of your venture. If you want to benefit from Continuous Integration and are considering using TeamCity then this book is for you.<br /><br />You will be acquainted with everything you need to know in order to apply Continuous Integration with TeamCity by installing it first, then turning on automatic supervision over project&rsquo;s reliability, and finally tuning up advanced settings in order to match your needs.</p>
Table of Contents (15 chapters)

Working with projects and build configurations


In order to let our source be served by TeamCity, we need to have a project and build configuration arranged properly.

Creating a project

It's now time to create our first project in TeamCity and set up an appropriate build configuration for it. Visit http://localhost/overview.html—the page we left at the end of the previous chapter, and click on the Create Project link with the big right arrow icon.

At the first step we need to provide an appropriate name, which is a required property as noted by a red asterisk. Upon submitting, you should get a confirmation screen offering to create new a build configuration.

Creating a build configuration

Creation of a build configuration is done via a multi-step setup wizard that guides you through the whole process. It is not an irreversible procedure, so every setting could be revised and changed anytime later.

As usual, we must provide a relevant name first. Enter a relevant name (say, Unit Tests) and click...