Re: Submit all custom views after a restart Jenkins

2015-10-28 Thread Jim SERRA
It works! I must have missed it when I tried :S Jim, On Wednesday, October 28, 2015 at 10:47:13 AM UTC+1, Robert Sandell wrote: > > have you tried after JOB_LOADED? > > /B > > On Wed, Oct 28, 2015 at 10:02 AM, Jim SERRA > wrote: > >> When I use the Initializer with

Re: Submit all custom views after a restart Jenkins

2015-10-28 Thread Jim SERRA
When I use the Initializer with after/before and whatever InitMilestone when I try to get the list of view with: jenkins.model.Jenkins.getInstance().getViews(); the list is not initialize yet and doesn't return anything. Some idea?

Re: Submit all custom views after a restart Jenkins

2015-10-28 Thread Robert Sandell
have you tried after JOB_LOADED? /B On Wed, Oct 28, 2015 at 10:02 AM, Jim SERRA wrote: > When I use the Initializer with after/before and whatever InitMilestone > when I try > to get the list of view with: >

Re: Submit all custom views after a restart Jenkins

2015-10-19 Thread Jim SERRA
Ok, So if I want to do the apply thing (to update my json files). The best way would be to do in the Initializer a foreach on views and do a deleteView and addView. I will check that. On Friday, October 16, 2015 at 6:01:26 PM UTC+2, Robert Sandell wrote: > > Well what I was suggesting was to

Re: Submit all custom views after a restart Jenkins

2015-10-16 Thread Jim SERRA
I don't want to bother you with details but my plugin is not really well developped (I learned by myself), so in short there is some data stored in json files. So I prefer to do this way like that I can add some security in persistance. The Initializer is quite interesting ! But I don't

Submit all custom views after a restart Jenkins

2015-10-16 Thread Jim SERRA
Hello, I have a plugin which manage custom views and portlets. I don't if it's possible but I would like to submit automatically all my customs views each time after my server Jenkins restart. Regards, Jim. -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: Submit all custom views after a restart Jenkins

2015-10-16 Thread Robert Sandell
Well what I was suggesting was to create your custom view in code and then add it to the ViewGroup (a.k. Jenkins) Jenkins.getActiveInstance().addView(new MyCustomView(...)) /B On Fri, Oct 16, 2015 at 5:39 PM, Jim SERRA wrote: > I don't want to bother you with details