

- #TEAMCITY BUILD AGENT INSTALL#
- #TEAMCITY BUILD AGENT ZIP FILE#
- #TEAMCITY BUILD AGENT UPDATE#
- #TEAMCITY BUILD AGENT WINDOWS#
We’ll use the manually configuration so just click configure build steps manually.Īs I said before, our Build Configuration will have two steps. Now TeamCity will try to figure out a few steps in an automated fashion. Remember to set a name and a description for this VCS root.Ĭlick the Test connection button to make sure your definitions are correct. For the authentication I’ll use the same SSH keys I’ve created also on the second article. I’ll use Git (we’ve installed it on the second article) and will just set the Fetch URL because our CI will never push changes to the repository. Properly configure the type and URL of the repository and the authentication method. Now you should point to the repository where you have your app’s code. Click on Create build configurationįill the name and the description for the Configuration. In the General settings tab you’ll see the existing Build Configurations below the project’s details. Then click the Create project buttonįill the name of your project and the description (if you want to) and then click the Create buttonĪt this moment you’re redirected to the project’s page. In order to create a Build Configuration go to TeamCity and create a new project through the Projects tab.
#TEAMCITY BUILD AGENT UPDATE#
We’ll create a Build Configuration that is triggered on any commit to our Git repository and it will have two steps: the first is the gulp task, to update the css file in the second step we’ll update the PHP dependencies using Composer. less files are included as is a Gulp task to convert them into a single.
#TEAMCITY BUILD AGENT INSTALL#
Everytime you install Laravel, Bootstrap’s. Our Build Configuration will be quite simple: Laravel 5 was released with a new feature called Elixir that is built on top of Gulp. Since I already have a Laravel 5 project created in the second article I’ll use that project. You will need to adjust the Build Configuration to match your needs, since a configuration is strongly affected by the project and the used technology and programming languages. The installation is completed but we still have to create a Build Configuration. Give it some time so both applications can connect and you should see it in the Connected tab Go back to TeamCity’s page in your browser and you should see you one agent in the Disconnected tab Start the Agent sudo /opt/TeamcityAgent/bin/agent.sh start Set execution permissions to the script that starts the Agent chmod +x /opt/TeamcityAgent/bin/agent.sh I’ll leave it as it is since I want to install TeamCity Agent on the same machine as TeamCity and I haven’t changed the default URL (which is Anyhow, take a look at the available configurations to know what is available.

Make the necessary adjustments to your configuration file. I’ll move it to /opt/ cd ~/DownloadsĬreate a new configuration file based on the distributed one: cp /opt/TeamcityAgent/conf/ /opt/TeamcityAgent/conf/buildAgent.properties
#TEAMCITY BUILD AGENT ZIP FILE#
Start by going to TeamCity » Agents (0) and click on Zip file distribution to download the Agent.Įxtract the file and move the directory to the location where you want TeamCity Agent. In my case I’ll install the Agent using the same server I’ve used in the previous articles (Linux Mint) but, as I’ve said, you can install the agent in any machine. Or you can make sure that your application works in Internet Explorer even if you use Linux.

This way you can make sure your web application works in Firefox with both operating systems.
#TEAMCITY BUILD AGENT WINDOWS#
A common example is an Agent installed in a Linux machine and another in a Windows machine. You can install more than one Agent in the same machine but it can be useful to install the Agents in different machines. The Agent is responsible for the Build Configuration’s execution and you should install at least one Agent so you can work with TeamCity. Another step from the same configuration could be uglify Javascript files (or, following the same logic of the first step, parse CoffeeScript into Javascript). Think about merging all less files and compact all the files into a single minified. What is this? A Build Configuration is a list of steps that will be executed. But it doesn’t do much without an Agent or a Build Configuration. Following the previous article where you’ve installed TeamCity, you can now say that you have a Continuous Integration Server.
