I'm a junior developer introducing unit testing to a project using SBT with Java 11. In my team of 3, they never wrote any kind of unit testing.
We are planning to start it now.
We have a self-hosted TeamCity CI/CD setup for unit testing. The default TeamCity runner agent (Docker) uses Java 17.
How can I install Java 11 within the existing runner or create a new runner with Java 11?
Installed runner using this
docker run -e SERVER_URL="http://<My self hosted server URL>:8111" jetbrains/teamcity-agent
Steps to install Java 11 in TeamCity via Docker :**
Create a
Dockerfile.Build the Docker file via below command:
Run the Teamcity container via below command:
Once the container is up and running, try to access
TeamCityvia http://localhost:8111.