mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 07:05:55 +00:00
replaced deprecated getActiveInstance() with get()
This commit is contained in:
1 parent
c9e66d0be9
commit
76057897be
41 files changed
+57
-59
No files matched your search
@@ -1236,7 +1236,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
|
||||
|
||||
@RequirePOST
|
||||
public HttpResponse doDoUninstall() throws IOException {
|
||||
Jenkins jenkins = Jenkins.getActiveInstance();
|
||||
Jenkins jenkins = Jenkins.get();
|
||||
|
||||
jenkins.checkPermission(Jenkins.ADMINISTER);
|
||||
archive.delete();
|
||||
|
||||
Reference in new issue
Block a user