[JIRA] (JENKINS-62128) NonSerializable exceptions would be great to have more information about

2 views
Skip to first unread message

alexanderrtaylor@gmail.com (JIRA)

unread,
Apr 30, 2020, 12:36:04 PM4/30/20
to jenkinsc...@googlegroups.com
Alex Taylor created an issue
 
Jenkins / Improvement JENKINS-62128
NonSerializable exceptions would be great to have more information about
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: workflow-cps-plugin
Created: 2020-04-30 16:35
Priority: Minor Minor
Reporter: Alex Taylor

Issue:
Recently I had an issue where I was getting a "Not Serializable Exception" when building a pipeline job (totally understandable error) caused by a LazyHashMap. I needed to just change the type of variable I was storing in order to make it serializable for CPS. The issue was that this was being stored as a ENV variable rather than a groovy variable and therefore threw an error on a very different step (in this case it was a email ext step) and was difficult to track down.

Request:
Would it be possible to get variable names or a pointer to the actual variable which threw the serialization error? That would be very helpful in the error message so I can find where it was potentially set much earlier and can be corrected

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages