The next step we need to do is set up our connection to source control so that whenever we check anything in our build automatically runs. You will then need to set up the connection. You then get the options of which source control repository you are linking to, I’m going to select “From Bitbucket Cloud” but you can select whichever is most appropriate. Now we need to create a project, to do this click on Projects and then Create Project. Team City then opens on the General page which is where you can update your profile if necessary. You then get prompted to set up an administrator account. You then need to accept the licence agreement by reading/scrolling all the way to the bottom. It will then create your TeamCity database on the instance you specify in the previous step, this does take a few minutes so be warned, or go and make a cuppa!! I selected the database type of “Internal” for simplicity sake. It then automatically loads the web page, and asks you where to store the path, then it asks about database connection setup. It will then ask you which services you want to start so click on next and then you get the “Completing the JetBrains TeamCity Setup Wizard” so click on Finish. I’m going to use the SYSTEM account and will probably go back and change this later, which you can do by opening the services and finding the TeamCity service and amending it that way. If you don’t have a service account set up you can use the SYSTEM Account however, you may have problems later on. It will then ask for the service account to use, this can be changed afterwards. It will then show you the “Configure Build Agent Properties” which is all the details that are set as standard. It will tell you if that port is already busy so you can allocate a different one. You then need to select the TeamCity server port, by default this is 80. It then starts installing, this took about 5 minutes. You can than select which components, I’ll just take the default which is everything which, at time of writing, requires 1.1GB. Then select the destination folder, I’ll keep with the default which is c:\teamcity but you can put it wherever suits. You will get a “Welcome to Team City setup” page, click on Next. Once downloaded, double click the exe file to start installing. You can download it and get more information from here It connects to your source control repository and can automatically trigger builds when changes are pushed into the repo. TeamCity is a Continuous Integration tool is free to use for small teams. Whilst I’ve used Team City extensively I’ve never had to start from the beginning, so I thought I’d document the steps I took. I’ve just started a project where I’ve had to set up Team City from scratch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |