@java.lang.SuppressWarnings(['EmptyMethodInAbstractClass', 'UnusedMethodParameter']) abstract class TemplatePrimitiveInjector extends java.lang.Object
Extension to hook into the initialization process to parse the pipeline configuration, create TemplatePrimitives, and validate them after creation
| Type Params | Return Type | Name and description |
|---|---|---|
|
static hudson.ExtensionList<TemplatePrimitiveInjector> |
all()fetches all registered TemplatePrimitiveInjectors |
|
TemplatePrimitiveCollector |
getPrimitiveCollector(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution exec) |
|
TemplatePrimitiveNamespace |
injectPrimitives(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution exec, PipelineConfigurationObject config)parse the aggregated pipeline configuration to instantiate a TemplatePrimitive and store it in a TemplatePrimitiveNamespace |
|
static void |
orchestrate(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution exec, PipelineConfigurationObject config)Triggers the 3-phase initialization process by iterating over all registered injectors |
|
static java.lang.Class |
parseClass(java.lang.String classText)Used to compile pipeline primitives using the CPS transformer. |
|
void |
validateConfiguration(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution exec, PipelineConfigurationObject config)Used to validate the pipeline configuration is structurally correct |
|
void |
validatePrimitives(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution exec, PipelineConfigurationObject config, TemplatePrimitiveCollector collector)A second pass allowing the different injector's to inspect what TemplatePrimitives have been created and respond accordingly |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
fetches all registered TemplatePrimitiveInjectors
parse the aggregated pipeline configuration to instantiate a TemplatePrimitive and store it in a TemplatePrimitiveNamespace
flowOwner - the run's flowOwnerconfig - the aggregated pipeline configurationTriggers the 3-phase initialization process by iterating over all registered injectors
flowOwner - the run's FlowExecutionOwnerconfig - the aggregated pipeline configurationUsed to compile pipeline primitives using the CPS transformer.
classText - the source code textUsed to validate the pipeline configuration is structurally correct
exec - the current CpsFlowExecutionconfig - the aggregated pipeline configurationA second pass allowing the different injector's to inspect what TemplatePrimitives have been created and respond accordingly
flowOwner - the run's flowOwnerconfig - the aggregated pipeline configuration