Re: Pipeline as a code events mechanism

2016-06-28 Thread Jesse Glick
On Mon, Jun 27, 2016 at 4:27 AM, Michael Neale wrote: > https://github.com/jenkinsci/blueocean-plugin/blob/a2f6c7376b88b2a93bf0d4a68238099174d11560/blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/util/StageEventRunListener.java This of course has the

Re: Pipeline as a code events mechanism

2016-06-28 Thread Thorsten Scherler
Hi Ido, Tom is ATM working with me on that. You may want to look into https://github.com/jenkinsci/blueocean-plugin/tree/feature/JENKINS-36211/blueocean-events/src/main/java/io/jenkins/blueocean/events for an outlook of what events will be fired. Do you need more, or more attributes? Sample

Re: Pipeline as a code events mechanism

2016-06-27 Thread Michael Neale
thanks! good to hear. I know Tom Fennelly was working on some other ways to get at these events, so there may be better code examples soon. Whatever you end up doing, post it here as others may likely benefit from this as well. On Monday, June 27, 2016 at 11:49:27 PM UTC+10, Ido Gadiel

Re: Pipeline as a code events mechanism

2016-06-27 Thread Ido Gadiel
Hi Michael, thanks for your answer. You helped a lot! -- 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. To view

Re: Pipeline as a code events mechanism

2016-06-27 Thread Michael Neale
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

Pipeline as a code events mechanism

2016-06-26 Thread Ido Gadiel
Hi everybody! I am trying to get events from the “Stages” that created by the groovy script. For “regular” jobs, we extended the RunListener 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