You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
Hi,
I am developing plugin which will get the data of job, how long it's been in Queue and how long it take to finish the job. Here I can't pass the action class from QueueListener to RunListener. Can any one help me know how to pass the data from QueueListener to RunListener. It would be great if i get any reference for the same.
Thanks
Parichay Barpanda
unread,
Jul 13, 2019, 8:34:05 AM7/13/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I have a suggestion (In reference to that), you can create a private variable say `timeTaken` in `JobScheduledListener.class` and a getter, then in `JobCompletedListener.onStarted` you can fetch the `timeTaken` variable from the Extension list like `ExtensionList.get(JobScheduledListener).getTimeTaken()`. Although I am not really sure about the extension lookup syntax though.