Skip to content
Commit 3df6ccae authored by Anish Dangi's avatar Anish Dangi
Browse files

[JENKINS-56403]: Renaming agents doesn't remove old agent configuration from disk

[JENKINS-33780] introduced a regression in persisting the update to disk.
In prior code, the update was performed through a full config save after
updating the nodes, but the functionality was not carried over.

* Added a file delete call to remove the old agent from disk iff
  the node name was changed.
* Add tests for this scenario and when node name was not updated.
parent 2263ad03
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment