Class BlockedStepsAndMethodCalls
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor
org.jenkinsci.plugins.pipeline.modeldefinition.validator.BlockedStepsAndMethodCalls
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class BlockedStepsAndMethodCalls
extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the map of method or step names to rejection messages.Get the map of step names to rejection messages.validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall method, org.jenkinsci.plugins.workflow.flow.FlowExecution execution) validateElement
(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.jenkinsci.plugins.workflow.flow.FlowExecution execution) Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor
all, isOptional, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElement, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll, validateElementAll
-
Constructor Details
-
BlockedStepsAndMethodCalls
public BlockedStepsAndMethodCalls()
-
-
Method Details
-
blockedInSteps
Get the map of step names to rejection messages. Exposed statically for testing purposes. -
blockedInMethodCalls
Get the map of method or step names to rejection messages. Exposed statically for testing purposes and for use in more granular validation of job properties vs declarative options vs wrapper steps. -
validateElement
@CheckForNull public String validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall method, @CheckForNull org.jenkinsci.plugins.workflow.flow.FlowExecution execution) - Overrides:
validateElement
in classorg.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor
-
validateElement
@CheckForNull public String validateElement(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, @CheckForNull org.jenkinsci.plugins.workflow.flow.FlowExecution execution) - Overrides:
validateElement
in classorg.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor
-