Config XML Changes Not Persisted

Article ID:217294547
1 minute readKnowledge base

Issue

Changes made to an agent’s configuration are not persisted in its config.xml

Environment

CloudBees Jenkins Enterprise

Resolution

You will need to manually edit the agent’s config.xml file to remove the temporary offline lines:

<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">
  <description>
    <holder>
      <owner>hudson.slaves.Messages</owner>
    </holder><key>SlaveComputer.DisconnectedBy
    </key>
    <args>
      <string>anonymous</string>
      <string/>
    </args>
  </description>
</temporaryOfflineCause>
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.