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 output for a reported event:
{"pipeline_job_name":"pipelinetest","pipeline_run_id":"111","pipeline_step_name":"echo","pipeline_step_stage_id":"5","pipeline_step_flownode_id":"8","pipeline_step_stage_name":"Stage
 
2","jenkins_event":"pipeline_step","pipeline_context":"4","jenkins_channel":"pipeline"}"

HTH

salu2

On Monday, June 27, 2016 at 10:27:18 AM UTC+2, Michael Neale wrote:
>
> 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/dd53e49a-e7c2-4697-aa51-02c29dff5b3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to