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 understand why you link the addView() method is it for the submit purpose? I never succeeded to do a submit of the view configuration in java. On Friday, October 16, 2015 at 5:20:54 PM UTC+2, Robert Sandell wrote: > > > http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#addView(hudson.model.View) > http://javadoc.jenkins-ci.org/hudson/init/Initializer.html > > But if you add them to Jenkins they should be persisted as well so a > restart shouldn't remove them. > > /B > > On Fri, Oct 16, 2015 at 4:35 PM, Jim SERRA <[email protected] > <javascript:>> wrote: > >> 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 Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/b90bcf8f-3428-49ab-84ca-b329c7771964%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-dev/b90bcf8f-3428-49ab-84ca-b329c7771964%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Robert Sandell > *Software Engineer* > *CloudBees Inc.* > -- 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/4302571b-6810-42b7-8052-d4d09bc33efb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
