Class SCMVar.Pickler

  • All Implemented Interfaces:
    ExtensionPoint
    Enclosing class:
    SCMVar

    @Extension
    public static class SCMVar.Pickler
    extends org.jenkinsci.plugins.workflow.support.pickles.SingleTypedPickleFactory<SCM>
    Ensures that scm is saved in its XML representation. Necessary for GitSCM which is marked Serializable yet includes a DescribableList which relies on a custom Converter. Note that a script which merely calls checkout scm, even after a restart, does not rely on this; but one which saves scm somewhere and uses it later would.
    • Constructor Detail

      • Pickler

        public Pickler()
    • Method Detail

      • pickle

        @NonNull
        protected org.jenkinsci.plugins.workflow.pickles.Pickle pickle​(@NonNull
                                                                       SCM scm)
        Specified by:
        pickle in class org.jenkinsci.plugins.workflow.support.pickles.SingleTypedPickleFactory<SCM>