Re: Understanding extension point for plugin

2014-02-23 Thread Jesse Glick
On Sat, Feb 22, 2014 at 4:30 AM, Daniel Beck m...@beckweb.net wrote: This should have a way to cover more recent functionality on newer Jenkinses without breaking the plugin for older Jenkinses. Possibly using reflection code generation, similar to hudson.util.SubClassGenerator. -- You

Re: Understanding extension point for plugin

2014-02-22 Thread Daniel Beck
On 22.02.2014, at 03:06, Bruno Meneguello br...@meneguello.com wrote: it's a work in progress This should have a way to cover more recent functionality on newer Jenkinses without breaking the plugin for older Jenkinses. For example, 1.548 introduced ItemListener.onLocationChanged and

Re: Understanding extension point for plugin

2014-02-22 Thread Adrien Lecharpentier
Hi, you should look at the Notifier class [1]. It's part of the post build action that is responsible to interact with 3rd party tools. Hope it helps, -- Adrien [1]: http://javadoc.jenkins-ci.org/?hudson/tasks/Notifier.html Le 21 févr. 2014 16:29, Fabio Farronato fabio.farron...@lispa.it a

Re: Understanding extension point for plugin

2014-02-22 Thread Bruno Meneguello
Notifier is good if you need per project registration. If you want global registration, I think RunListener is best. Em 22/02/2014 07:08, Adrien Lecharpentier adrien.lecharpent...@gmail.com escreveu: Hi, you should look at the Notifier class [1]. It's part of the post build action that is

Understanding extension point for plugin

2014-02-21 Thread Fabio Farronato
Hi all, I'm newbe on jenkins and in writing plugins. I have some trouble in understanding extension point. I have looked for in the wiki for an explanation of a job's workflow execution without success. I have the need of notify to an external tool, calling an api, when a job start.

Re: Understanding extension point for plugin

2014-02-21 Thread oliver gondža
Hi, If you want to be notified about all started builds see RunListener[1], if only for explicitly configured jobs see BuildWrapper[2]. [1] http://javadoc.jenkins-ci.org/?hudson/model/listeners/RunListener.html [2] http://javadoc.jenkins-ci.org/?hudson/tasks/BuildWrapper.html -- oliver --

Re: Understanding extension point for plugin

2014-02-21 Thread Bruno Meneguello
I'm finishing the development of a new plugin that listens to every listener of system and notify endpoints (until now HTTP GET and logger). ASAP 'll share the repo. Em 21/02/2014 14:36, oliver gondža ogon...@gmail.com escreveu: Hi, If you want to be notified about all started builds see

Re: Understanding extension point for plugin

2014-02-21 Thread Bruno Meneguello
As said before, the new plugin is Extreme Notificationhttps://github.com/jenkinsci/extreme-notification-plugin. Still not published in the central plugins repo, but you can clone and build by yourself. If this plugin don't meet exactly your need, we can discuss changes (it's a work in progress)