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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<String,String>
    Get the map of method or step names to rejection messages.
    static Map<String,String>
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockedStepsAndMethodCalls

      public BlockedStepsAndMethodCalls()
  • Method Details

    • 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 class org.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 class org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor