Thanks Robert....I have missed generics on FileCallable...it fixed the error.
On Wed, 12 Jun 2019, 19:02 Robert Sandell, <[email protected]> wrote: > Probably missed the generics on FileCallable > > implements FileCallable<List<String>> { > > though you should probably use MasterToSlaveFileCallable instead of the > base one. > > /B > > Den ons 12 juni 2019 kl 11:22 skrev varun vikas <[email protected]>: > >> @old hooky >>> >> what should be return type of >> >> public List<String> invoke(File ws, VirtualChannel channel) function. >> Here it is throwing error , attempting to use incompatible return type. >> >> I have defined a inner class >> private static final class AttachmentLister implements FileCallable{ >> @override >> public List<String> invoke(File ws, VirtualChannel channel){ >> } >> } >> >> Note: I want to return invoke function a list, but it is giving >> error...how to handle it. >> >> -- >> 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/bd7502bb-8376-45fd-86c4-87c6ebfb2747%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-dev/bd7502bb-8376-45fd-86c4-87c6ebfb2747%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > *Robert Sandell* > Software Engineer > CloudBees, Inc. > [image: CloudBees-Logo.png] <http://www.cloudbees.com/> > E: [email protected] > Twitter: robert_sandell > > -- > 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/CALzHZS1Fuw7TbhNsEbLQmguGgVAsyJtQoZ%3DsP7VswRAgu1h%3D-Q%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS1Fuw7TbhNsEbLQmguGgVAsyJtQoZ%3DsP7VswRAgu1h%3D-Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAKQUBE6i_vLH35KzzAbMhD2K5Z_XM01OWR0-qsQbmz9e48VW5w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
