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 <varunvik...@gmail.com>:

> @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 jenkinsci-dev+unsubscr...@googlegroups.com.
> 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: rsand...@cloudbees.com
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS1Fuw7TbhNsEbLQmguGgVAsyJtQoZ%3DsP7VswRAgu1h%3D-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to