JenkinsRule always returns null in getPluginManager().getPlugin() on new core versions

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            Oleg Nenashev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: