Class AbstractModel

java.lang.Object
io.jenkins.plugins.pipeline.models.AbstractModel
Direct Known Subclasses:
AgentModel, ChildPostModel, ChildToolModel, EnvironmentModel, EnvironmentVariableModel, InputModel, KeyValueModel, LibraryModel, OptionsModel, ParallelModel, ParametersModel, PipelineModel, PostModel, ScriptModel, StageModel, StagesModel, StepsModel, SubScriptModel, ToolsModel, TriggersModel, VariableModel, WhenConditionModel, WhenModel

public abstract class AbstractModel extends Object
Abstract Model class which is extended by Model classes
  • Constructor Details

    • AbstractModel

      public AbstractModel()
  • Method Details

    • optionalStringToGroovy

      protected String optionalStringToGroovy(Optional<String> option, String optionKey)
      Convert Optional object to Groovy Script with given Option Key
      Parameters:
      option - Option
      optionKey - Option Key
      Returns:
      Groovy Script
    • optionalBooleanToGroovy

      protected String optionalBooleanToGroovy(Optional<Boolean> option, String optionKey)
      Convert Optional object to Groovy Syntax with given Option Key
      Parameters:
      option - Option
      optionKey - Option Key
      Returns:
      Groovy Script