Issue Summary
Restarting a remote agent causes new lines to be added the $BAMBOO_AGENT_HOME/bamboo-agent.cfg.xml between XML elements
Steps to Reproduce
- Install a remote agent on Bamboo 11+
- Restart it: $BAMBOO_AGENT_HOME/bin/bamboo-agent.sh restart
Expected Results
$BAMBOO_AGENT_HOME/bamboo-agent.cfg.xml should not have new lines added between each XML element on restart.
Actual Results
$BAMBOO_AGENT_HOME/bamboo-agent.cfg.xml has new lines added between each XML element on restart.
Example
Original
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <configuration> <buildWorkingDirectory>/home/ubuntu/bamboo-agent-home/xml-data/build-dir</buildWorkingDirectory> ...
Second restart:
<configuration> <buildWorkingDirectory>/home/ubuntu/bamboo-agent-home/xml-data/build-dir</buildWorkingDirectory> ...
Third restart:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <configuration> <buildWorkingDirectory>/home/ubuntu/bamboo-agent-home/xml-data/build-dir</buildWorkingDirectory> ...
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available