I implemented a class which will notifies GitLab Server about the job status. https://github.com/baymac/gitlab-branch-source-plugin/blob/develop/src/main/java/io/jenkins/plugins/gitlabbranchsource/helpers/GitLabSCMPipelineStatusNotifier.java
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. On Saturday, July 13, 2019 at 5:54:39 PM UTC+5:30, selva vignesh wrote: > > 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 > -- 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/783c0d8f-0086-405a-b59c-58eeff979c7e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
