Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48885

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

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          mkobit Mike Kobit added a comment -

          Job DSL is another plugin that makes use of these APIs

          Show
          mkobit Mike Kobit added a comment - Job DSL is another plugin that makes use of these APIs
          Hide
          mac_ Gyula Varga added a comment - - edited

          Any update or workaround (downgrade jenkins core for tests?) for this? This kind of limits the usage of the jenkins testing harness

           

           

          Show
          mac_ Gyula Varga added a comment - - edited Any update or workaround (downgrade jenkins core for tests?) for this? This kind of limits the usage of the jenkins testing harness    
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Gyula Varga Sorry, I got reassigned to another task. No ETA. I will unassign myself

          Show
          oleg_nenashev Oleg Nenashev added a comment - Gyula Varga Sorry, I got reassigned to another task. No ETA. I will unassign myself

            People

            • Assignee:
              Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: