I got this working. My bad forgot to import the necessary packages.
Any idea on how can't I send mails to the owner of the build in the above scenarios of stock jobs in que. I couldn't find any owner option in the /yourhost/queue/API/xml -- You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/2570630a-f958-4729-870f-5fbd4fd026a8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
