From d28a54732f92e7d9ebb4fb8875743da3d792816c Mon Sep 17 00:00:00 2001 From: Allan Burdajewicz Date: Tue, 7 Mar 2023 18:22:56 +1000 Subject: [PATCH] [JENKINS-70740] Fix JobconfigHistory circular dependency source (#279) --- src/main/java/hudson/plugins/jobConfigHistory/PluginUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/hudson/plugins/jobConfigHistory/PluginUtils.java b/src/main/java/hudson/plugins/jobConfigHistory/PluginUtils.java index 0a020383..5a549218 100644 --- a/src/main/java/hudson/plugins/jobConfigHistory/PluginUtils.java +++ b/src/main/java/hudson/plugins/jobConfigHistory/PluginUtils.java @@ -23,6 +23,7 @@ */ package hudson.plugins.jobConfigHistory; +import hudson.ExtensionList; import hudson.Plugin; import hudson.model.User; import hudson.security.ACL; @@ -55,7 +56,7 @@ private PluginUtils() { * @return plugin */ public static JobConfigHistory getPlugin() { - return GlobalConfiguration.all().get(JobConfigHistory.class); + return ExtensionList.lookupSingleton(JobConfigHistory.class); } /**