mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
don't active unless it's run from tests
This commit is contained in:
1 parent
d0db609a76
commit
cc3393a74e
1 file changed
+2
@@ -52,6 +52,8 @@ public class TestExtensionLoader extends ExtensionFinder {
|
||||
|
||||
List<ExtensionComponent<T>> result = new ArrayList<ExtensionComponent<T>>();
|
||||
|
||||
if (env==null) return result; // not in a test
|
||||
|
||||
ClassLoader cl = hudson.getPluginManager().uberClassLoader;
|
||||
for (IndexItem<TestExtension,Object> item : Index.load(TestExtension.class, Object.class, cl)) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user