Class WhenConditionModel
java.lang.Object
io.jenkins.plugins.pipeline.models.AbstractModel
io.jenkins.plugins.pipeline.models.WhenConditionModel
- All Implemented Interfaces:
ParsableModelInterface
Model Class for
WhenModel
Conditions-
Constructor Summary
ConstructorDescriptionWhenConditionModel
(String conditionName, List<String> whenRuleList) WhenConditionModel
(String conditionName, Optional<WhenConditionModel> whenConditionModel) -
Method Summary
Methods inherited from class io.jenkins.plugins.pipeline.models.AbstractModel
optionalBooleanToGroovy, optionalStringToGroovy
-
Constructor Details
-
WhenConditionModel
- Parameters:
conditionName
- Name of the conditionwhenRuleList
- List of rules
-
WhenConditionModel
- Parameters:
conditionName
- Name of the conditionwhenConditionModel
-WhenConditionModel
-
-
Method Details
-
toGroovy
Description copied from interface:ParsableModelInterface
Convert model to Jenkins Declarative Pipeline Syntax- Specified by:
toGroovy
in interfaceParsableModelInterface
- Returns:
- Jenkins Declarative Pipeline Syntax
-