TeamCity is one of the great CI tools out there. It’s pricing is affordable providing different licensing scenarios and being free for small teams with less that 20 build configurations. Clean interface and easy to setup, configure and use, is an excellent option to get your CI process in place without paying expensive fees or requiring expensive dedicated servers and maintenance resources.
I wanted to write a simple step by step guide on how to install TeamCity that you can follow along easily. Hopefully you will find it straight forward and helpful.
Before you start downloading and installing TeamCity, you should first take the time to discuss it in your company with your superiors, tech gurus and team colleagues. Remember that there is never one solution for every scenario, and although TeamCity is a great easy to setup-and-use product, it might not be the best fit for your specific needs. There are several other CI tools out there, so my advise is to first gather your CI requirements and discuss with your team what is the best CI strategy and tools for your particular needs.
If you choose TeamCity as your CI server, welcome on-board!
First, you need to have a server where you can install TeamCity to run the CI builds. Generally this is the same server you use for your development environments. Although it is recommended that you dedicate a server for the CI builds, you will find it quite common to use your development server also for the CI server without issues.
Now that you have your server, source control tools and the TeamCity installer ready, let’s get started with the installation process.
Go ahead and run the TeamCity installer executable. You will be presented with a the license agreement. Read through it and then accept it.
Next, choose a location for the files.
Choose the components to install.
Specify the configuration directory. You can leave the default one.
Click next and TeamCity will begin the installation.
Once the installation is about to finish, the wizard will ask you to define the port for the TeamCity web administration interface. It is recommended that you use port 8080 for it.
Then configure the Build Agent properties.
When clicking Save, the wizard will display a saving confirmation with the path to the properties file.
The next step is for you to define the TeamCity service account. Generally you will leave to the default, SYSTEM Account, but you can make it run under a user account too if needed.
Then select to start the TeamCity services.
You are done with the installation process.
If the admin web console doesn’t open automatically, you can start it by opening your browser and going to http://localhost:8080. Your first task is to create the administrator user account.
Click on the proceed button.
Rad and accept the agreement.
Enter the details for the Administrator account. This will be the master admin account for the TeamCity CI server. Make sure to securely save this information and communicate it to your team colleagues that will need access.
Once you are done, you will be redirected to TeamCity’s main page and you are ready to create your CI builds!
Congratulations! You have installed your TeamCity CI server and you are ready to implement your CI Builds and practices on your development process. Make sure to check TeamCity’s documentation, installation reference, general CI topics and CI common practices.
I’ll hopefully publish a few posts on build configuration techniques, but please leave me a comment if you are interested in more advance TeamCity build configuration topics.