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
Abstract Model class which is extended by Model classes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
optionalBooleanToGroovy
(Optional<Boolean> option, String optionKey) ConvertOptional
object to Groovy Syntax with given Option Keyprotected String
optionalStringToGroovy
(Optional<String> option, String optionKey) ConvertOptional
object to Groovy Script with given Option Key
-
Constructor Details
-
AbstractModel
public AbstractModel()
-
-
Method Details
-
optionalStringToGroovy
ConvertOptional
object to Groovy Script with given Option Key- Parameters:
option
- OptionoptionKey
- Option Key- Returns:
- Groovy Script
-
optionalBooleanToGroovy
ConvertOptional
object to Groovy Syntax with given Option Key- Parameters:
option
- OptionoptionKey
- Option Key- Returns:
- Groovy Script
-