Class HeteroDescribableConfigurator<T extends Describable<T>>

    • Constructor Detail

      • HeteroDescribableConfigurator

        public HeteroDescribableConfigurator​(Class<T> clazz)
    • Method Detail

      • configure

        @NonNull
        public T configure​(CNode config,
                           ConfigurationContext context)
        Description copied from interface: Configurator
        Configures/creates a Jenkins object based on a tree.
        Specified by:
        configure in interface Configurator<T extends Describable<T>>
        Parameters:
        config - Map/List/primitive objects (think YAML) that represents the configuration from which a Jenkins object is configured.
        context - Fully configured Jenkins object used as the starting point for this configuration.
        Returns:
        Fully configured Jenkins object that results from this configuration. if no new objects got created, but some existing objects may have been modified, return updated target object.
      • check

        public T check​(CNode config,
                       ConfigurationContext context)
        Description copied from interface: Configurator
        Run the same logic as Configurator.configure(CNode, ConfigurationContext) in dry-run mode. Used to verify configuration is fine before being actually applied to a live jenkins controller.
        Specified by:
        check in interface Configurator<T extends Describable<T>>
        Parameters:
        config - Map/List/primitive objects (think YAML) that represents the configuration from which a Jenkins object is configured.
        context - Fully configured Jenkins object used as the starting point for this configuration.