If I remove the transient modifier from the GitScm attribute,I will get java.io.NotSerializableException: hudson.util.DescribableList.
Is GitPushStep already doing that correctly? If yes, what are the consequences of this lack of serialization?
Mark Waite
unread,
Jul 18, 2023, 8:25:49 AM7/18/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
GitSCM is not serializable. It is correct to not attempt to serialize it. Can you explain why you believe that you need to serialize it?
Réda Housni Alaoui
unread,
Jul 18, 2023, 10:02:43 AM7/18/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
Given GitScm exends GitSCMBackwardCompatibility and GitSCMBackwardCompatibility implements Serializable, I though it was expecting it to be serializable.