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
Constructors Constructor Description BlockedStepsAndMethodCalls()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
blockedInMethodCalls()
Get the map of method or step names to rejection messages.static Map<String,String>
blockedInSteps()
Get the map of step names to rejection messages.String
validateElement(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMethodCall method, org.jenkinsci.plugins.workflow.flow.FlowExecution execution)
String
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
-
-
-
-
Method Detail
-
blockedInSteps
public static Map<String,String> blockedInSteps()
Get the map of step names to rejection messages. Exposed statically for testing purposes.
-
blockedInMethodCalls
public static Map<String,String> 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
-
-