Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 630 Bytes

JenkinsClassNotSerializable.md

File metadata and controls

13 lines (7 loc) · 630 Bytes

Pattern: Class is not Serializable

Issue: -

Description

Classes in Jenkins libraries should generally implement the Serializable interface because every expression/variable used in a CPS transformed method can potentially be serialized.

Generally all user defined classes (not from external libraries) in pipeline libraries or Jenkins files are already implicitly Serializable in Jenkins but it makes static analysis easier later on if all classes are marked Serializable explicitly.

Further Reading