Re: plugin development: add global environment settings

2018-03-10 Thread Stephen Connolly
On Sat 10 Mar 2018 at 15:04, Daniel Beck wrote: > > > On 9. Mar 2018, at 09:43, Johann wrote: > > > > guys nobody can help me? Should I show some more of my code Global.jelly is to configure the descriptor rather than the instance To use

Re: plugin development: add global environment settings

2018-03-10 Thread Daniel Beck
> On 9. Mar 2018, at 09:43, Johann wrote: > > guys nobody can help me? Should I show some more of my code? I think this would be useful. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from

Re: plugin development: add global environment settings

2018-03-10 Thread martinda
Johann, I cannot help much, but 2 years ago I wrote some code in an attempt to understand how to create global configuration entries. I don't remember much about it. You can find this code here https://github.com/martinda/jenkins-plugin-globalconfig-demo1 Hope this helps, Martin On Friday,

Re: plugin development: add global environment settings

2018-03-09 Thread Johann
guys nobody can help me? Should I show some more of my code? -- 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 jenkinsci-dev+unsubscr...@googlegroups.com.

Re: plugin development: add global environment settings

2018-03-07 Thread Johann
I deleted it, but still the path value is null. Also if I go to *Manage Jenkins -> Configure *and change the value of the textbox and click on *Save*, its not saving the new value, after refreshing the page the old value is there again. Am Mittwoch, 7. März 2018 14:16:07 UTC+1 schrieb Daniel

Re: plugin development: add global environment settings

2018-03-07 Thread Daniel Beck
> On 7. Mar 2018, at 14:01, Johann wrote: > > > > > > Why do you have two nested f:entries? Try with just the inner one. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers"

Re: plugin development: add global environment settings

2018-03-07 Thread Johann
My Code: private String path; public MyClass(String path) { this.path = path; } public String getPath() { return this.path; } and in my global.jelly file: Not working Am Mittwoch, 7. März 2018 13:27:45 UTC+1 schrieb Daniel Beck: > > > Make

Re: plugin development: add global environment settings

2018-03-07 Thread Daniel Beck
> On 7. Mar 2018, at 12:49, Johann wrote: > > by specify the field="myVar" I was able to parse the value of the textbox and > use it in my code. But when I try to get the value of the field entry in my > global.jelly, its always null. Make sure you have a public

Re: plugin development: add global environment settings

2018-03-07 Thread Daniel Beck
> On 7. Mar 2018, at 10:03, Johann wrote: > > hopefully someone can help me. I am developing a plugin right now, for test > purposes and I am wondering how I can make an extra tab for my plugin in > Manage Jenkins -> Configure that I am able to make global