Class BlockedStepsAndMethodCalls

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension
    public class BlockedStepsAndMethodCalls
    extends org.jenkinsci.plugins.pipeline.modeldefinition.validator.DeclarativeValidatorContributor
    • 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
    • Constructor Detail

      • BlockedStepsAndMethodCalls

        public BlockedStepsAndMethodCalls()
    • 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 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