Class ModelStepLoader
java.lang.Object
org.jenkinsci.plugins.workflow.cps.GlobalVariable
org.jenkinsci.plugins.pipeline.modeldefinition.ModelStepLoader
- All Implemented Interfaces:
ExtensionPoint
Loads the main "pipeline" step as well as the additional CPS-transformed code it depends on.
- Author:
- Andrew Bayer
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
ALL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
byName, forJob, forRun
-
Field Details
-
STEP_NAME
- See Also:
-
-
Constructor Details
-
ModelStepLoader
public ModelStepLoader()
-
-
Method Details
-
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
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.
-