Re: FilePath.act question

2019-06-12 Thread varun vikas
Thanks RobertI have missed generics on FileCallable...it fixed the
error.


On Wed, 12 Jun 2019, 19:02 Robert Sandell,  wrote:

> Probably missed the generics on FileCallable
>
>  implements FileCallable> {
>
> though you should probably use MasterToSlaveFileCallable instead of the
> base one.
>
> /B
>
> Den ons 12 juni 2019 kl 11:22 skrev varun vikas :
>
>> @old hooky
>>>
>> what should be return type of
>>
>> public List 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 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
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> *Robert Sandell*
> Software Engineer
> CloudBees, Inc.
> [image: CloudBees-Logo.png] 
> 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.
>

-- 
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/CAKQUBE6i_vLH35KzzAbMhD2K5Z_XM01OWR0-qsQbmz9e48VW5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: FilePath.act question

2019-06-12 Thread Robert Sandell
Probably missed the generics on FileCallable

 implements FileCallable> {

though you should probably use MasterToSlaveFileCallable instead of the
base one.

/B

Den ons 12 juni 2019 kl 11:22 skrev varun vikas :

> @old hooky
>>
> what should be return type of
>
> public List 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 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
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
*Robert Sandell*
Software Engineer
CloudBees, Inc.
[image: CloudBees-Logo.png] 
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.


Re: FilePath.act question

2019-06-12 Thread varun vikas

>
> @old hooky
>
what should be return type of

public List 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 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.
For more options, visit https://groups.google.com/d/optout.