Class PipelineParser
java.lang.Object
io.jenkins.plugins.pipeline.parsers.AbstractParser
io.jenkins.plugins.pipeline.parsers.PipelineParser
- All Implemented Interfaces:
ParserInterface<PipelineModel>
Parser for
PipelineModel
-
Field Summary
Fields inherited from class io.jenkins.plugins.pipeline.parsers.AbstractParser
yaml, yamlNodeName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse()
Parse Yaml to ModelParse and validates provided Pipeline As YAML ScriptMethods inherited from class io.jenkins.plugins.pipeline.parsers.AbstractParser
convertEnvironmentVariableModel, convertVariableModel, extractParameters, getChildNodeAsLinkedHashMap, getChildNodeAsList, getChildNodeAsObject, getChildNodeAsString, getKey, getValue
-
Constructor Details
-
PipelineParser
- Parameters:
jenkinsFileAsYamlContent
- Jenkins File as Yaml
-
-
Method Details
-
parse
Description copied from interface:ParserInterface
Parse Yaml to Model- Specified by:
parse
in interfaceParserInterface<PipelineModel>
- Returns:
- Optional of Generic Type
-
parseAndValidate
Parse and validates provided Pipeline As YAML Script- Returns:
- Pipeline Model if conversion is successful
-