Class StepRuntimeTransformerContributor
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.parser.StepRuntimeTransformerContributor
- All Implemented Interfaces:
ExtensionPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
Get allStepRuntimeTransformerContributor
s.final org.codehaus.groovy.ast.stmt.BlockStatement
handleBranch
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch) Construct the newBlockStatement
for the given branch.final org.codehaus.groovy.ast.expr.ClosureExpression
handleBuildCondition
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, org.codehaus.groovy.ast.expr.ClosureExpression body) Construct the newClosureExpression
for the given build condition.final org.codehaus.groovy.ast.expr.ClosureExpression
handleStage
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, org.codehaus.groovy.ast.expr.ClosureExpression body) Construct the newClosureExpression
for the given stage.final org.codehaus.groovy.ast.expr.MethodCallExpression
handleStep
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.codehaus.groovy.ast.expr.MethodCallExpression methodCall) CalltransformStep(ModelASTStep, MethodCallExpression)
if appropriate, after handling any nested steps as well.static org.codehaus.groovy.ast.expr.ClosureExpression
transformBuildCondition
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, org.codehaus.groovy.ast.expr.ClosureExpression body) Apply step transformation to the given build condition for allStepRuntimeTransformerContributor
s.static org.codehaus.groovy.ast.expr.ClosureExpression
transformStage
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, org.codehaus.groovy.ast.expr.ClosureExpression body) Apply step transformation to the given stage for allStepRuntimeTransformerContributor
s.abstract org.codehaus.groovy.ast.expr.MethodCallExpression
transformStep
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
-
Constructor Details
-
StepRuntimeTransformerContributor
public StepRuntimeTransformerContributor()
-
-
Method Details
-
handleStage
@NonNull public final org.codehaus.groovy.ast.expr.ClosureExpression handleStage(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body) Construct the newClosureExpression
for the given stage. -
handleBuildCondition
@NonNull public final org.codehaus.groovy.ast.expr.ClosureExpression handleBuildCondition(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body) Construct the newClosureExpression
for the given build condition. -
handleBranch
@NonNull public final org.codehaus.groovy.ast.stmt.BlockStatement handleBranch(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch) Construct the newBlockStatement
for the given branch. -
handleStep
@NonNull public final org.codehaus.groovy.ast.expr.MethodCallExpression handleStep(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, @NonNull org.codehaus.groovy.ast.expr.MethodCallExpression methodCall) CalltransformStep(ModelASTStep, MethodCallExpression)
if appropriate, after handling any nested steps as well. -
transformStep
@NonNull public abstract org.codehaus.groovy.ast.expr.MethodCallExpression transformStep(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, @NonNull org.codehaus.groovy.ast.expr.MethodCallExpression methodCall) -
all
Get allStepRuntimeTransformerContributor
s.- Returns:
- a list of all
StepRuntimeTransformerContributor
s registered.
-
transformStage
@NonNull public static org.codehaus.groovy.ast.expr.ClosureExpression transformStage(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body) Apply step transformation to the given stage for allStepRuntimeTransformerContributor
s. -
transformBuildCondition
@NonNull public static org.codehaus.groovy.ast.expr.ClosureExpression transformBuildCondition(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body) Apply step transformation to the given build condition for allStepRuntimeTransformerContributor
s.
-