we hit a similar issue testing JobDSL definitions, the workaround is to use 
a custom TestPluginManager that ignores the detached plugins from the war 
see 
https://issues.jenkins.io/browse/JENKINS-60295?focusedCommentId=400912&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-400912

El viernes, 27 de septiembre de 2019 a las 19:42:54 UTC+2, 
[email protected] escribió:

> Thanks,
>
> That particular step doesn't fail in production but when using the 
> JenkinsRule. After debugging just a bit I think it was some kind of missing 
> plugin dependency. Although the stactrace makes the debug really hard though
>
> On Friday, 27 September 2019 15:44:26 UTC+1, Jesse Glick wrote:
>>
>> On Fri, Sep 27, 2019 at 6:28 AM Victor Martinez 
>> <[email protected]> wrote: 
>> > an exception which occurred: 
>> > in field 
>> org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptScript.script
>>  
>>
>> > in object 
>> org.jenkinsci.plugins.pipeline.modeldefinition.agent.impl.LabelScript@37db0aae
>>  
>>
>> > in … 
>> > Caused: java.io.NotSerializableException: log 
>>
>> Sounds like you have some variable or field named `log` which is the 
>> problem. 
>>
>

-- 
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/134b4b90-c9df-4148-b6ed-ff0d21841302n%40googlegroups.com.

Reply via email to