You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is using the agent zip from 2017.1.2 - I'm using this Dockerfile with only some really minor modifications to add a few other requirements.
As fair as I can tell, this is simply because the agent.sh script tries to source findJava.sh as if it's guaranteed to be in the working directory, but that's not the case from this image.
[ec2-user@ip-10-176-72-238 dockerized-tc-agents]$ docker logs docker_tcagent_1
/run-services.sh
/run-agent.sh
Will create new buildAgent.properties using distributive
TeamCity URL is provided: http://betateamcityaws
Will prepare agent config
run agent.sh configure --server-url http://betateamcityaws --name ip-10-176-72-238_docker_tcagent_1
/opt/buildagent/bin/agent.sh: 142: .: findJava.sh: not found
Error! Stopping the script.
Indeed, it's fixable by chaging the line in agent.sh that calls findjava from
. findJava.sh
to
. ./findJava.sh
So I suppose this is really more of an issue with the agent bundle than this image
The text was updated successfully, but these errors were encountered:
As I can see in the current sources, TeamCity uses . ./findJava.sh in the agent.sh script.
Probably the issue could be with a change of working directory after your modifications.
This is using the agent zip from 2017.1.2 - I'm using this Dockerfile with only some really minor modifications to add a few other requirements.
As fair as I can tell, this is simply because the agent.sh script tries to source findJava.sh as if it's guaranteed to be in the working directory, but that's not the case from this image.
Indeed, it's fixable by chaging the line in agent.sh that calls findjava from
. findJava.sh
to
. ./findJava.sh
So I suppose this is really more of an issue with the agent bundle than this image
The text was updated successfully, but these errors were encountered: