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

st:include for Descriptor should use not from="${d}" but class="${d.klazz}"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 1.617

      Let's take following case:

      • Plugin A defines a sub class of Descriptor (PluginADescriptor)
      • Plugin B depending on plugin A defines a Describable class described by an instance of PluginADescriptor (DescribableB).
        • Watch that it is described by an instance of *not a subclass of * PluginADescriptor but PluginADescriptor itself.

      This is exactly the case SimpleBuildSelectorDescriptor in copyartifact-plugin.

      In this case, the following jelly fails:

      <st:include from="${d}" page="${d.configPage}" />
      

      as stapler try to load config.jelly from plugin A, but it's actually in plugin B.

      That should be:

      <st:include class="${d.klazz}" page="${d.configPage}" />
      

            ikedam ikedam
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: