Installing TeamCity for the first time
First, I will be describing the steps for installing Teamcity considering that this will be the first time installing and configuring Teamcity, I will install it on Windows Server 2016.
Prerequisites:
Prerequisites:
- SQL server 2017
- SQL management tools
- TeamCity download the TeamCity installation package depending on your target environment, for me, I installed Executable Windows installer TeamCity-2019.2.2.exe
- Installing SQL server 2017 the things to make sure you do when installing the SQL server
(start the installation as usual)- Server Configuration: set the collation Latin1_General_CS_AS (Teamcity requires a Case-Sensitive and Accent-Sensitive collation)
Select customize and adjust the collation - if you want to use a separate user account for Teamcity add it as an administrator account
- After the installation is done, configure the installed SQL server to be used with TeamCity, by enabling TCP/IP protocol for that SQL server
for SQL Server Configuration Manager - Expand SQL Server Network Configuration - Enable TCP/IP for the related SQL server - Before we finish the SQL server setup the last step would be to create a new database name it 'TeamCity' with collation 'Latin1_General_CS_AS' that will be used when configuring Teamcity server by going through those steps
- Server Configuration: set the collation Latin1_General_CS_AS (Teamcity requires a Case-Sensitive and Accent-Sensitive collation)
- Installing Team City
- Run TeamCity-2019.2.2.exe that was downloaded
- Click on Next and agree on the agreement
- Select the Destination Folder and click Next. This folder will be used to store configuration settings, build results, and current operation files (the default folder is c:\TeamCity\). This can be changed in the configurations
- Click on Next and make sure to change the Teamcity Server Port (the default port is 80). Port 80 is used by other programs so it's better to be changed
- The final Configuration, Save and continue
- For the user account, I used SYSTEM account for the service, for now, there is another option which is to run TeamCity under a user account
- Click Next and finish.
- Now Teamcity is successfully installed and can be accessed http://localhost:8080/
- Run TeamCity-2019.2.2.exe that was downloaded
- Teamcity First Start
- Setting up the data directory
according to Teamcity documentation: Data Directory is the directory on the file system used by TeamCity server to store configuration settings, build results, and current operation files. The directory is the primary storage for all the configuration settings and holds the data critical to the TeamCity installation. - Insert the data directory and click proceed
- Select MS SQL as the database and insert related data
- Proceed and go through the Licence Agreement, and click Continue
- It's time to fill in the profile and start working with TeamCity
- Create the Admin account, username TeamCity-admin
- Other users can be created, by clicking on Administration - User Management - Users
- Now we can start creating projects and build configurations
- Setting up the data directory
Next, I will be going through installing Octopus and create a project in TeamCity and connecting TeamCity with Octopus.
Sources:
https://www.jetbrains.com/help/teamcity/teamcity-documentation.html
Comments
Post a Comment