Hi Jesse,

I was passing TaskListener to allow logging/reporting in the Console Output.  
Is there a static method I can call instead?

My code gets invoked by FileCallable<>:
        T invoke(File f, VirtualChannel channel) throws IOException, 
InterruptedException;

Alternatively I might be able to mark TaskListener as transient.

Thanks,
Paul 
 
> On 31 Aug 2016, at 15:20, Jesse Glick <[email protected]> wrote:
> 
> On Wed, Aug 31, 2016 at 8:27 AM, pallen <[email protected]> wrote:
>> The serialization seems ok when running remotely on slaves for normal use.
>> However, I noticed an error in my unit tests when I wrap the job with
>> assertBuildStatusSuccess(job.scheduleBuild2(0)).
> 
> Probably just got lucky. To be safe, use `RestartableJenkinsRule` and
> prove that your code survives restarts.
> 
>> The 'p4' Groovy object uses a String, a Workspace (made up of other Strings,
>> ints and booleans) and a TaskListener.  I have double checked the
>> Serialization of Workspace, perhaps TaskListener is the issue?
> 
> No, you may not serialize a `TaskListener`. Why do you think you need to?
> 
> -- 
> 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/CANfRfr3D_qWVG3BeMsyLN3B6idawh4KurOrB2D3ZTGezuNL36g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

<p style"color: gray;font-size: 10pt;font-family: arial, helvetica, 
sans-serif;">
--------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. Please
note that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Perforce Software. Finally,
the recipient should check this email and any attachments for the presence of
viruses. Perforce Software accepts no liability for any damage caused by any
virus transmitted by this email.

Perforce Software UK Ltd is registered in England and Wales as company no.
3816019 at the following address: West Forest Gate, Wellington Road, Wokingham,
RG40 2AQ, UK
--------------------------------------------------------------------------------
</p>

-- 
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/C05F68E3-4472-49FA-BFEE-0A6E73ECE1EC%40perforce.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to