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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelStepLoader.ModelInterpreterAllowlist
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ModelStepLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Object
getValue(org.jenkinsci.plugins.workflow.cps.CpsScript script)
static void
invalidateOptionTypeCaches()
Make sure we've invalidated the option type caches due to potential race conditions with their population.
-
-
-
Field Detail
-
STEP_NAME
public static final String STEP_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@NonNull public String getName()
- Specified by:
getName
in classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
-
getValue
@NonNull public Object getValue(@NonNull org.jenkinsci.plugins.workflow.cps.CpsScript script) throws Exception
- Specified by:
getValue
in classorg.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 usingInitializer
, we need this to be triggered in anExtension
, so here is as good a place as any.
-
-