TeamCity default jdk for buildAgent on linux


slippysoup
25/12/2015 9:47 am
HOME ยป Network & Servers

I'm trying to run a TeamCity (default) build agent with 32-bit java on ubuntu 64-bit, I have created a [TeamCity]/bin/setenv.sh what contains:

JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun

That works fine running the server with 32-bit jre, but not for the agent: I've tried these lines in [buildAgent]/conf/buildAgent.properties

JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun
JRE_HOME=/usr/lib/jvm/ia32-java-6-sun/jre

and also a '[buildAgent]/jre' link

[buildAgent]/jre -> /usr/lib/jvm/ia32-java-6-sun/jre/

when I do a '[TeamCity]/bin/runAll.sh start' I get this:

Using CATALINA_BASE:   /srv/TeamCity
Using CATALINA_HOME:   /srv/TeamCity
Using CATALINA_TMPDIR: /srv/TeamCity/temp
Using JRE_HOME:        /usr/lib/jvm/ia32-java-6-sun
Using CLASSPATH:      
/srv/TeamCity/bin/bootstrap.jar:/srv/TeamCity/bin/tomcat-juli.jar
Starting TeamCity build agent...
Java executable is found in '/usr/bin/..'.
Starting TeamCity Build Agent Launcher...
Agent home directory is /srv/TeamCity/buildAgent
Current Java runtime version is 1.6
Lock file: /srv/TeamCity/buildAgent/logs/buildAgent.properties.lock
Using no lock
Done [16436], see log at ../logs/teamcity-agent.log

As you can see from the output, the server is using 32-bit jdk, but the build agent is running the java found in '/usr/bin' (which is 64-bit in my case).

Closer inspection of the '[buildAgent]/bin/findJava.sh', it looks like the script runs a 'which java' and finds the default system java before it even tries any of the supplied args/folders. I think it should find '[buildAgent]/jre' before the system java.

Whats the correct way to specify the java version to use for a build agent, which may be a different version than the server?

Should I just modify findJava.sh to check its arguments before checking the system path for java?


Related to : TeamCity default jdk for buildAgent on linux
TeamCity default jdk for buildAgent on linux
25/12/2015 9:47 am by slippysoup in Network & Servers

I'm trying to run a TeamCity (default) build agent with 32-bit java on ubuntu 64-bit, I have created a [TeamCity]/bin/setenv.sh what contains:

JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun

That works fine running the server with 32-bit jre, but not for the agent: I've t


Teamcity buildagent system log alerts
by unfool in Network & Servers

We currently have our dev server running Teamcity 7.1 and have been building / publishing without a problem. Recently though, we noticed that whenever an error is generated in the Application logs, instead of getting the error from the live .pdb (C:inetpubwwwroot[SiteName]in), its getting it fr


Cannot execute IEDriver or ChromeDriver through TeamCity BuildAgent on Windows 7
by manivel in Network & Servers

My team is looking into using Selenium 2 for our UI testing. Our UI development is being done by an external vendor (a topic for another time) and using the RemoteDriver(server/client) would be require more maintenance than productivity on our end.


My test project is a simple maven pr


Is there a way to Change the checkout directory in teamcity based on which buildAgent is running the build?
by Ben in Network & Servers

I have two build agents running for teamcity. One build agent runs on a server with a d drive on it and one runs on a server that does not have a D drive. I want the buildAgent on the server with the d drive to do an svn checkout to a specified file location on the d drive and the second build ag


TeamCity & Subversion: Checkout copies ALL tags to buildagent's checkout directory
by Keoki619 in Network & Servers

We have the following URL:
URL: https://dev-01:8555/svn/Shop


We have the following structure in SubVersion


Shop
--trunk
--branches
--tags

The problem is, when I do a build, under the buildagent directory, I get every single tag i


How can I override the <default> branch name in TeamCity 7.1 using Git branching support?
by PrinceMyshkin in Network & Servers

I've got a CI build pulling feature branches from Github and building/packaging them into a local folder, using a folder naming convention based on the project, branch and build number.


For named branches (feature1, feature2) this is working great.


The problem is that when


teamcity xbuild on linux
by Caveman in Network & Servers

When I run my build it will fail with the following log:


[14:14:45]Checking for changes
[14:15:02]Publishing internal artifacts
[14:15:02]Clearing temporary directory: /var/TeamCity/buildAgent/temp/buildTmp
[14:15:02]Free disk space requirement
[14:15:02][Free d
TeamCity and Mercurial via SSH on Linux
by ti22 in Network & Servers

I am struggling to get our Ubuntu TeamCity server to checkout repos via SSH. Basically my question is, where would I specify the private-key password?


When running a shell on the machine hosting teamcity and being logged in as the user under which teamcity runs, I can run hg clo


TeamCity build agent becomes disconnected after adding self-signed https certificate to teamcity
by Thomas in Network & Servers

I added a self-signed certificate to my Teamcity BuildServer to introduce https support so that it can now be accessed at


https://ServerUrl:8443

(More details about how here )


The result was that I was able access the server via https, but my build


Why does TeamCity add “csproj.teamcity.patch” to web app package files?
by ruby in Network & Servers

I suspect there's probably an easy answer to this I'm just not seeing, but whenever I run a TeamCity build with either MSBuild or the Visual Studio solution runner against a .csproj and target "Package", the build artifacts always include the "csproj.teamcity.patch" string after the project name:


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .