Quantcast

Run multiple instances of post-build action

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Run multiple instances of post-build action

Raja
Hi
I have a plugin that extends the "Notifier" class to create a post-build plugin. The problem is that once I create a post-build action using that plugin, it is disabled after that. I would like to have many instances of the same plugin for the same job. I looked around the Jenkins source and it looks like the configure-publishers2.jelly contains a hetero-list with an attribute called "oneEach=true", which then triggers a javascript to disable my post-build entry if its already selected. 

Is it possible to override this setting somehow. I was trying to add my own configure-publishers2.jelly as part of the plugin but I guess thats loaded by a different classloader, and hence it doesnt even try to load my jelly file.

Is there a way to override this behaviour of having more than one instance of post-build action per job? 

Thanks
Raja
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Run multiple instances of post-build action

Raja
I just found the f:repeatable tag that could do a similar job. I just needed to have multiple configurations in the same plugin and having them repeat similar to the SSHPlugin should be good enough. 

Regards
Raja

On Tuesday, October 30, 2012 9:31:06 AM UTC+5:30, Raja wrote:
Hi
I have a plugin that extends the "Notifier" class to create a post-build plugin. The problem is that once I create a post-build action using that plugin, it is disabled after that. I would like to have many instances of the same plugin for the same job. I looked around the Jenkins source and it looks like the configure-publishers2.jelly contains a hetero-list with an attribute called "oneEach=true", which then triggers a javascript to disable my post-build entry if its already selected. 

Is it possible to override this setting somehow. I was trying to add my own configure-publishers2.jelly as part of the plugin but I guess thats loaded by a different classloader, and hence it doesnt even try to load my jelly file.

Is there a way to override this behaviour of having more than one instance of post-build action per job? 

Thanks
Raja
Loading...