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

variant plugin activates extensions that should not be active

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • variant-plugin
    • None

      I created an extension that was annotated with the variants @OptionalExtension marker with required-plugins="something-not-installed"

      When running the plugin in Jenkins without the required plugin I expected my Extension not to be present, but it was present and active (as shown by ExtensionList.lookup

      It seems as though the requirement is not checked before creating the extension which is contrary to the documentation.

       

      NB, looked at this quickly with danielbeck and we could not see anything wrong in the plugin I was writing

            Unassigned Unassigned
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: