Class StepsModel
- java.lang.Object
-
- io.jenkins.plugins.pipeline.models.AbstractModel
-
- io.jenkins.plugins.pipeline.models.StepsModel
-
- All Implemented Interfaces:
ParsableModelInterface
public class StepsModel extends AbstractModel implements ParsableModelInterface
Model Class for Jenkins Declarative Pipeline Steps Section
-
-
Constructor Summary
Constructors Constructor Description StepsModel(String steps)
StepsModel(List<String> steps)
StepsModel(Optional<ScriptModel> script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toGroovy()
Convert model to Jenkins Declarative Pipeline SyntaxString
toGroovyForPostModel()
Convert steps to Groovy Format for Post Section-
Methods inherited from class io.jenkins.plugins.pipeline.models.AbstractModel
optionalBooleanToGroovy, optionalStringToGroovy
-
-
-
-
Field Detail
-
directive
public static final String directive
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StepsModel
public StepsModel(Optional<ScriptModel> script)
- Parameters:
script
-ScriptModel
-
StepsModel
public StepsModel(String steps)
- Parameters:
steps
- Step
-
-
Method Detail
-
toGroovy
public String toGroovy()
Description copied from interface:ParsableModelInterface
Convert model to Jenkins Declarative Pipeline Syntax- Specified by:
toGroovy
in interfaceParsableModelInterface
- Returns:
- Jenkins Declarative Pipeline Syntax
-
toGroovyForPostModel
public String toGroovyForPostModel()
Convert steps to Groovy Format for Post Section- Returns:
- Steps in Groovy Format for Post Section
-
-