Restart of a remote agent causes new lines to be added the bamboo-agent.cfg.xml between XML elements

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 12.1.0, 12.0.3
    • Affects Version/s: 11.0.0, 12.0.0
    • Component/s: Agents
    • None
    • 1
    • Severity 3 - Minor
    • 1

      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

      1. Install a remote agent on Bamboo 11+
      2. 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

            Assignee:
            Marcin Gardias
            Reporter:
            Jeremy Owen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: