On 02.03.2016, at 16:08, 'konrad' via Jenkins Developers 
<[email protected]> wrote:

> As the appropriate hudson model seems to be Run, I'd expect to find a 
> RunProperty extension point or something along that name, but I couldn't find 
> it. So the only way that comes to my mind is to register a RunListener and 
> call run.addAction(...). Is that the right way or am I off track?

If you have a JobProperty on the job, you can implement perform(…)[1] and add 
your action to the build[2].

1: 
http://javadoc.jenkins-ci.org/hudson/model/JobProperty.html#perform%28hudson.model.AbstractBuild,%20hudson.Launcher,%20hudson.model.BuildListener%29
2: 
http://javadoc.jenkins-ci.org/hudson/model/Run.html#addAction%28hudson.model.Action%29

-- 
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/A129DA60-9A02-4190-8560-6B590D1999EA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to