I tried to add get function in the plugin Class file.
public String getPluginName() {
return "TestPlugin(branch-A)";
}
but in global.jelly it does not works with below.
<f:section title="${instance.pluginName}">
</f:section>
This the get function works in config.jelly.
在 2019年7月29日星期一 UTC+8上午9:17:30,Boyka Zhu写道:
>
> Hi,
>
> I have one request that is need to add parentheses into the Jelly label
> like:
> <f:section title="${%TestPlugin(branch-A)}">
> </f:section>
>
> But this looks no works when display"(branch-A)", can someone helps?
> Appreciate it.
>
> Thanks
> Boyka
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/8be51d74-b5ab-4634-82ac-99cdcfeeb38f%40googlegroups.com.