Re: Private message regarding: Updating a config.xml file for a job through Java code
Please use the mailing list so others can participate. I still do not understand your use case. Do you want to replace the job configuration page with a simpler one? When you are running a plugin inside Jenkins then there is no need to use the remote API, this is only required if you write an additional application... Am 24.06.2014 um 23:46 schrieb Karthik V S karthik.tec...@gmail.com: Hi Ullrich, Thank you for your reply. I now know which api to call to obtain the job configuration config.xml and to post the job configuration.xml. However, my query is that, where should the code for reading the xml file and posting the xml file be placed? Should it be in the class that extends from Plugin or should it be in a some other class? If it is the former, could you please let me know whether to place the code in the start or the configure method? If it is the latter, could you please let me know in which class should i place that code and what Hudson class should that class extend reply? Apologies for the numerous questions. But have been stuck on this for the past two days. Any info would be really valuable. Thanks, Karthik On Saturday, 21 June 2014 01:27:14 UTC-7, Ullrich Hafner wrote: Can you please explain in more detail? What is a custom job configuration page? A web page outside of the Jenkins web app? You can update the job configuration using the remote api. Am 21.06.2014 um 02:29 schrieb Karthik V S karthik...@gmail.com: Hi, I have an custom job configuration page that is a subset of the options present in the main configuration page. My requirement is to persist the changes done in this page to the config.xml file of the project? Could anyone provide me valuable pointers on this? -- 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-de...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: Message signed with OpenPGP using GPGMail
Re: Updating a config.xml file for a job through Java code
Hi Ulli, A custom job configuration page is very much a page inside the Jenkins Web App. It consists of a subset of options for configuring a job that are usually present when user clicks on Configure page in the side. For updating the job configuration using the API should i do it in my PluginImpl class that extends plugin or in a DescriptorImpl class that extends from AbstractProjectDescriptor? On Sat, Jun 21, 2014 at 1:27 AM, Ulli Hafner ullrich.haf...@gmail.com wrote: Can you please explain in more detail? What is a custom job configuration page? A web page outside of the Jenkins web app? You can update the job configuration using the remote api. Am 21.06.2014 um 02:29 schrieb Karthik V S karthik.tec...@gmail.com: Hi, I have an custom job configuration page that is a subset of the options present in the main configuration page. My requirement is to persist the changes done in this page to the config.xml file of the project? Could anyone provide me valuable pointers on this? -- 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. For more options, visit https://groups.google.com/d/optout. -- 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. For more options, visit https://groups.google.com/d/optout.
Re: Updating a config.xml file for a job through Java code
Hi All, I have got to know that calling the http://jenkins url/createitem/name=jobname will create a new job. Is there any such api call to modify the existing job?? On Monday, 23 June 2014 10:05:45 UTC-7, Karthik V S wrote: Hi Ulli, A custom job configuration page is very much a page inside the Jenkins Web App. It consists of a subset of options for configuring a job that are usually present when user clicks on Configure page in the side. For updating the job configuration using the API should i do it in my PluginImpl class that extends plugin or in a DescriptorImpl class that extends from AbstractProjectDescriptor? On Sat, Jun 21, 2014 at 1:27 AM, Ulli Hafner ullrich.haf...@gmail.com wrote: Can you please explain in more detail? What is a custom job configuration page? A web page outside of the Jenkins web app? You can update the job configuration using the remote api. Am 21.06.2014 um 02:29 schrieb Karthik V S karthik.tec...@gmail.com: Hi, I have an custom job configuration page that is a subset of the options present in the main configuration page. My requirement is to persist the changes done in this page to the config.xml file of the project? Could anyone provide me valuable pointers on this? -- 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. For more options, visit https://groups.google.com/d/optout. -- 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. For more options, visit https://groups.google.com/d/optout.
Re: Updating a config.xml file for a job through Java code
Can you please explain in more detail? What is a custom job configuration page? A web page outside of the Jenkins web app? You can update the job configuration using the remote api. Am 21.06.2014 um 02:29 schrieb Karthik V S karthik.tec...@gmail.com: Hi, I have an custom job configuration page that is a subset of the options present in the main configuration page. My requirement is to persist the changes done in this page to the config.xml file of the project? Could anyone provide me valuable pointers on this? -- 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. For more options, visit https://groups.google.com/d/optout. signature.asc Description: Message signed with OpenPGP using GPGMail
Updating a config.xml file for a job through Java code
Hi, I have an custom job configuration page that is a subset of the options present in the main configuration page. My requirement is to persist the changes done in this page to the config.xml file of the project? Could anyone provide me valuable pointers on this? -- 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. For more options, visit https://groups.google.com/d/optout.