Class SCMVar.Pickler

java.lang.Object
org.jenkinsci.plugins.workflow.pickles.PickleFactory
org.jenkinsci.plugins.workflow.support.pickles.SingleTypedPickleFactory<SCM>
org.jenkinsci.plugins.workflow.multibranch.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 Details

    • Pickler

      public Pickler()
  • Method Details

    • 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>