Class ModelStepLoader

java.lang.Object
org.jenkinsci.plugins.workflow.cps.GlobalVariable
org.jenkinsci.plugins.pipeline.modeldefinition.ModelStepLoader
All Implemented Interfaces:
ExtensionPoint

@Extension public class ModelStepLoader extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Loads the main "pipeline" step as well as the additional CPS-transformed code it depends on.
Author:
Andrew Bayer
  • Field Details

  • Constructor Details

    • ModelStepLoader

      public ModelStepLoader()
  • Method Details

    • getName

      @NonNull public String getName()
      Specified by:
      getName in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
    • getValue

      @NonNull public Object getValue(@NonNull org.jenkinsci.plugins.workflow.cps.CpsScript script) throws Exception
      Specified by:
      getValue in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
      Throws:
      Exception
    • invalidateOptionTypeCaches

      @Initializer(after=EXTENSIONS_AUGMENTED) public static void invalidateOptionTypeCaches()
      Make sure we've invalidated the option type caches due to potential race conditions with their population. Because we're using Initializer, we need this to be triggered in an Extension, so here is as good a place as any.