Hi Ido. Yes, there is a way. If you excuse my scratchings:
https://github.com/jenkinsci/blueocean-plugin/blob/a2f6c7376b88b2a93bf0d4a68238099174d11560/blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/util/StageEventRunListener.java I was trying to listen for the same. A run listener registers a graph listener - and from that, there are many events. On Sunday, June 26, 2016 at 8:23:11 PM UTC+10, Ido Gadiel wrote: > > Hi everybody! > > I am trying to get events from the “Stages” that created by the groovy > script. > For “regular” jobs, we extended the RunListener<Run> class, and got the > onStarted & onComplete methods, > But that doesn’t seems to work with those new “Stages”. > > Is there any way to make a registration for a WorkflowJob’s (or > WorkflowRun ) events ? > Is there any other class to extend in order the get events? > > Thank you very much, > Ido > > -- 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/08306e27-4164-474d-b7de-fc8b52dd6205%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
