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

variant plugin activates extensions that should not be active

    • 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

          [JENKINS-58302] variant plugin activates extensions that should not be active

          James Nord created issue -
          James Nord made changes -
          Description Original: I create 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.
          New: 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.
          James Nord made changes -
          Description Original: 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.
          New: 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
          James Nord made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: James Nord [ teilo ]
          James Nord made changes -
          Component/s New: core [ 15593 ]
          James Nord made changes -
          Assignee Original: James Nord [ teilo ]
          James Nord made changes -
          Component/s Original: core [ 15593 ]

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

              Created:
              Updated: