-
Bug
-
Resolution: Unresolved
-
Major
Hit it multiple times while running PCT for JEP-200. Some tests retrieve Plugin instances from Jenkins instance using the following commands:
- getPluginManager().getPlugin("git") - e.g. GitHub plugin
- Jenkins.getInstance().getPlugin("ownership") - e.g. Ownership plugin. In this case the plugin's production logic fails since it's code accesses the plugin (to be fixed though)
With recent Jenkins cores / JTH both methods ALWAYS return null, and it breaks tests
[JENKINS-48885] JenkinsRule always returns null in getPluginManager().getPlugin() on new core versions
Assignee | Original: Oliver Gondža [ olivergondza ] | New: Oleg Nenashev [ oleg_nenashev ] |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Summary | Original: Jenkins Rule with custom plugin manager alway returns null in getPluginManager().getPlugin() | New: JenkinsRule always returns null in getPluginManager().getPlugin() on new core versions |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "https://github.com/jenkinsci/jenkins-test-harness/pull/92 (Web Link)" [ 19755 ] |
Description |
Original:
Hit it multiple times while running PCT for JEP-200. Some tests retrieve Plugin instances from Jenkins instance using the following commands: * getPluginManager().getPlugin("git") - e.g. GitHub plugin * Jenkins.getInstance().getPlugin("ownership") - e.g. Ownership plugin With recent Jenkins cores / JTH both methods ALWAYS return null, and it breaks tests |
New:
Hit it multiple times while running PCT for JEP-200. Some tests retrieve Plugin instances from Jenkins instance using the following commands: * getPluginManager().getPlugin("git") - e.g. GitHub plugin * Jenkins.getInstance().getPlugin("ownership") - e.g. Ownership plugin. In this case the plugin's production logic fails since it's code accesses the plugin (to be fixed though) With recent Jenkins cores / JTH both methods ALWAYS return null, and it breaks tests |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Assignee | Original: Oleg Nenashev [ oleg_nenashev ] |
Assignee | New: Oleg Nenashev [ oleg_nenashev ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |