TeamCity 7 Continous Integration
Format: PDF / Kindle (mobi) / ePub
A step-by-step introductory tutorial and intelligible practical guide to successfully applying Continuous Integration via TeamCity
* Put Continuous Integration into operation with TeamCity, quickly and easily with this practical tutorial.
* Set automatic build checks and notifications according to your needs and configure multi-step builds with dependent and interrelated projects easily.
* Plug TeamCity either to existing on-going development or at the project's very beginning.
* Perform fine-tuning adjustments of the TeamCity Server
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'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.
"TeamCity 7 Continous Integration" is the first book of its kind showing in a sequential approach — how to start implementing Continuous Integration — over generic projects and enclosing rich features of the TeamCity as a project gradually evolves.
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.
You will learn how to start a new Java project from scratch generating a working "skeleton" 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.
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's reliability, and finally tuning up advanced settings in order to match your needs.
What you will learn from this book
* Create basic Java web application from scratch.
* Write simple Unit tests with JUnit.
* Install TeamCity and perform its initial setup.
* Attach TeamCity to existing application source base.
* Set up automatic build triggering and notifications.
* Create multi-step inter-dependent build configurations.
* Add and configure Users and Groups settings.
* Install and authorize additional BuildAgents.
* Keep rock-solid confidence in project stability.
A step-by-step practical tutorial towards succesfully applying Continous Integration with TeamCity.
main idea stays the same). 2. Then right-click on the project's name and select Subversion | Share Directory.... 3. Click on the plus symbol, enter your Subversion server's URL, and click on Share. [ 48 ] Chapter 4 4. After this sharing step, you need to commit your project to Subversion. Select the src directory together with the pom.xml file, right-click on one of them and then go to Subversion | Commit Files. Enter some valid comment and click on Commit. Now we have some source to
to distinguish it later among the others ( Extra Agent), and set its port to any unused one in your system, such as 9999, and click on Save. Pay attention to the confirmation screen. By default, any new agent (except those installed on the same computer as TeamCity server) needs a special treatment to become capable of being used with TeamCity server. 6. Click on Next and then on Done in the installer window to complete the installation. Start this new agent with the following command:
future ventures. I hope this book will help your projects to be rock solid and prevent any unexpected and unwelcome surprises, such as uncompilable code in the main trunk or a sudden discovery of a failing test ahead of tomorrow's release to production. All of this comes along with a confidence in the steadiness of the development process utilizing the power of Continuous Integration provided by means of TeamCity. [ 110 ] Index A additional build agent installing 103-107 advanced
configuration, TeamCity server advanced server settings 102 upgrading, to new version 98 user and group notifications 93 advanced server settings additional build agent, installing 103-107 dedicated build configuration, assigning to agent 107 agent-side checkout, VCS 16 application launching 32, 33 architecture, TeamCity 14 arguments, command line -DachetypeArtifactId 23 -DachetypeGroupId 23 -DartifactId 23 -DgroupId 23 -DinteractiveMode 23 -Dversion 23 archetype:generate 23 Atom/RSS feed
project-related settings, TeamCity server configuration 57 Q quiet period 10 R remote run about 73 working 73, 74 working, in Eclipse 80-83 working, in IntelliJ IDEA 75-79 restoring, TeamCity server 102 RSS feeds 9 S sample project creating 23 IntelliJ IDEA, installing 24 opening, with IDEA 24-28 source, generating by Maven 23, 24 server administration, TeamCity server configuration about 58 Agent Cloud page 59 Diagnostics page 59 Global settings page 58 Licenses page 59 Usage Statistics page