Class ScriptModel
java.lang.Object
io.jenkins.plugins.pipeline.models.AbstractModel
io.jenkins.plugins.pipeline.models.ScriptModel
- All Implemented Interfaces:
ParsableModelInterface
Model Class for Jenkins Declarative Pipeline Script Section
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setPrintDirective
(Boolean printDirective) Set Print directivetoGroovy()
Convert model to Jenkins Declarative Pipeline SyntaxMethods inherited from class io.jenkins.plugins.pipeline.models.AbstractModel
optionalBooleanToGroovy, optionalStringToGroovy
-
Field Details
-
directive
- See Also:
-
-
Constructor Details
-
ScriptModel
- Parameters:
scripts
- List of scripts
-
ScriptModel
- Parameters:
scripts
- Script
-
-
Method Details
-
setPrintDirective
Set Print directive- Parameters:
printDirective
- True: For printing directive/key in groovy, False: For not printing
-
toGroovy
Description copied from interface:ParsableModelInterface
Convert model to Jenkins Declarative Pipeline Syntax- Specified by:
toGroovy
in interfaceParsableModelInterface
- Returns:
- Jenkins Declarative Pipeline Syntax
-