agent-configurator.jar mangles server URL
Hi,
I'm running a TeamCity build agent inside a Docker container, and part of the set-up process involves running the following command line:
usr/bin/java -jar "../lib/agent-configurator.jar" configure --server-url "http://localhost:8111" --agent-config-file "../conf/buildAgent.properties"
This then results in a buildAgent.properties file with the following line:
serverUrl=http\://localhost\:8111
Which of course the build agent itself can't parse, disabling it from communicating with the build server. If I edit the backslashes away manually, the problem goes away, but I need to be able to auto-generate the serverUrl property. What kind of quoting or formatting can I use to not have agent-configurator.jar insert those backslashes?
Please sign in to leave a comment.
Hello,
It could be easier for you to use an official TeamCity Build Agent image from the Docker Hub Repository. Please reply whether this suits you.
These backslashes are intended to be added - agents should work both with and without them.
Could you please provide some log snippet, screenshot or any other evidence that your agent work without backslashes and does not work with them?
E.g. attach teamcity-agent.log and teamcity-server.log files and please specify which TeamCity version do you use?