[JENKINS-68194] Delete .disabled file when uninstalling a plugin (#7042)

This commit is contained in:
EBIBO authored and GitHub committed 2022-11-26 07:02:58 -08:00
1 parent 221ff946b3
commit 58e457f6bd
2 files changed
+13

No files matched your search

@@ -1356,6 +1356,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
jenkins.checkPermission(Jenkins.ADMINISTER);
Files.deleteIfExists(Util.fileToPath(archive));
Files.deleteIfExists(Util.fileToPath(disableFile));
// Redo who depends on who.
jenkins.getPluginManager().resolveDependentPlugins();