Re: How to add parentheses into Jelly lable title/value?

2019-07-29 Thread Jesse Glick
On Sun, Jul 28, 2019 at 9:17 PM Boyka Zhu wrote: > I have one request that is need to add parentheses into the Jelly label like: > > Parentheses are interpreted as format parameters. To fix this, simply put in `basename.jelly`: and create `basename.properties`: your-key=TestPlugin(branch-A

Re: How to add parentheses into Jelly lable title/value?

2019-07-28 Thread Boyka Zhu
Got resolved. Just put the get functions into DescriptorImpl. Then from jelly use install.yourgetfuction() or descriptor.getyourfuction() will be OK. public String getTestPlugin()() { return "TestPlugin(branch-A)"; } 在 2019年7月29日星期一 UTC+8上午9:17:30,Boyka Zhu写道: > > Hi, > > I have one request

Re: How to add parentheses into Jelly lable title/value?

2019-07-28 Thread Boyka Zhu
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. This the get function works in config.jelly. 在 2019年7月29日星期一 UTC+8上午9:17:30,Boyka Zhu写道: > > Hi, > > I have one request t

How to add parentheses into Jelly lable title/value?

2019-07-28 Thread Boyka Zhu
Hi, I have one request that is need to add parentheses into the Jelly label like: 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 u