Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can anyone suggest reasons as to why the default Build Agent would be unavailable in TeamCity?

I'm in the process of setting up a proper CI environment and am currently evaluation TeamCity. (So my TeamCity experience is non-existent.).

I've performed a default install of TeamCity 5.0.1 Professional in a clean Windows XP (for now) VM.

I've created my project and pointed it to my source repository and queued up a build.

However, I don't see any Build Agents installed/available via the Team City web interface. I've checked and there is a 'Team City Build Agent' service installed and it's running. I've also reviewed the log files in the buildAgent folder and don't see anything that would lead me to an error.

Is there a step or concept that I'm missing here on getting the default Build Agent to become available to Team City? I'm not trying to do anything complicated with the build. (at this point, I just want to pull my source down from the repository)

like image 864
Peter Bernier Avatar asked Dec 06 '22 04:12

Peter Bernier


1 Answers

I had exactly the same problem. After going through settings, reinstalling the agent etc, I found that the problem was rather simple - the TeamCity agent placed a wrong teamcity URL in it's property (and other paths as well).

Find the buildagent.properties file ( buildAgentInstallDir\conf\buildagent.properties), and you'll probably see that all of the lines have 'escape' characters in them (e.g. serverUrl=http://localhost:8090/ )

Modify the file to remove escape chars (i.e. links should be plain like: serverUrl=http://localhost:8090/ , env.TEAMCITY_JRE=C:\Program Files\TeamCity\BuildAgentInstalled\jre and similar)

Hope this helps...

like image 100
veljkoz Avatar answered Dec 07 '22 17:12

veljkoz