On Friday, June 27, 2014 5:22:13 PM UTC+1, Stephen Connolly wrote: > > I think we are still missing something in letting people backport this to > older plugins. So from what I can see in its current incarnation we'd be > waiting for plugins to pick up this version of core. >
Ah yes... I forgot to mention that in the email. As part of the plugin support, we will provide a "shim" plugin. This plugin will define what is, in effect, a "proxy" type jelly tag (so something like <icon-shim >) that will check the version of the underlying Jenkins installation. If the underlying Jenkins is a version that supports the <icon> tag then, <icon-shim> just delegates to that tag... mapping across all the attributes (both tags would have the same "interface"). If the underlying version is an older version that does not support the <icon> tag, then <icon-shim> should just render the icon <img> directly i.e. as icon <img> markup is done today. You and I also talked about doing a pre-release of this shim plugin. > I think there is not much to go to get there. The big blocker in my mind > is that you have *h.toNormalizedIconNameClass* which is a function that > would only be present in newer versions of core. > Right... maybe I shouldn't have used that in the examples :) In the same way that plugins will not be able to use the new core <icon> tag, then they will also not be able to use anything like *h.toNormalizedIconNameClass.* We need to provide alternatives via the shim plugin. > > I think until people see how they can use this in a plugin that works on > older and newer versions of core it will be harder to gain traction. > Agreed... this is the next step... the shim plugin + porting of one of the existing plugins to use it and demo it working on a new and old Jenkins. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
