installation and setting up TeamCity server without using UI interface

Hi,

Is there any documentation on how to install TeamCity server and connect it to database (say MS-SQL) using CLI commands or programmatically ? In order to automate the process of deployment, I would like to avoid using UI interface. 

I have a windows VM in Azure cloud in which I download the server installer. I want to do the setup and deployment of the server through CLI or API. 

Thanks,

Dhiman

 

0
3 comments
Avatar
Fedor Rumyantsev

Hello Dhiman,

The process would boil down to these steps:

1) download the .tar.gz installation of TeamCity;
2) unpack the archive to the target folder;
3) set the location of Data Directory as per this guide;
4) if Data Directory already exists at the specified path, TeamCity will just start as usual. If it does not exist yet, you will need to start it manually at least once and access UI so that Data Directory is created, then amend config/database.properties file as per this guide to point it to the MS SQL instance in question.

Can you please let me know your usage scenario? Perhaps I could advise some better solution.

 
0

Hi,

My only requirement is to follow all the steps by running CLI commands or by providing a configuration. I want to deploy teamcity server programmatically and I don't want to have human intervention and use UI even once. 

 

Thanks,

Dhiman

0
Avatar
Fedor Rumyantsev
Hello Dhiman,

In this case you may want to install TeamCity manually once, take a backup of the Data Directory and then restore it during the automatic installation (please refer to , *restore from a backup file via `maintainDB`* section).
0

Please sign in to leave a comment.