We have installed TeamCity on an OpenSuse machine. the version of TeamCity is 9.1.3.
I have installed JDK 1.8 on the server but I am not using it as default Java. I want to update every Agent to build with new JDK (version 8) and if update was successful for all of agents then I will try to upgrade JDK for whole system.
I couldn't find an easy way for running an agent or project with specific JDK version. I am used to with Jenkins and there it was pretty easy to use different JDK for builds.
I looked at Team city documentation but couldn't find any real instruction how can we use an specific Java version for a project or agent.
Any help?
JAVA_HOME=""
on each agent or confiruration params – WaitJAVA_HOME
might not be enough, some of TeamCity agents I work with are not able to detect all the available JDKs on the system. – Needful