Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-56403]: Renaming agents doesn't remove old agent configurati…
…on 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.
- Loading branch information
1 parent
2263ad0
commit 3df6cca
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters