Package io.jenkins.plugins.pipeline
Class PipelineAsYamlSnippetizer
java.lang.Object
org.jenkinsci.plugins.workflow.cps.Snippetizer
io.jenkins.plugins.pipeline.PipelineAsYamlSnippetizer
- All Implemented Interfaces:
ExtensionPoint
,Action
,DescriptorByNameOwner
,ModelObject
,RootAction
@Extension
@StaplerAccessibleType
public class PipelineAsYamlSnippetizer
extends org.jenkinsci.plugins.workflow.cps.Snippetizer
Pipeline As YAML Snippetizer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Extension forTransientActionFactory
static class
Extension forSnippetizerLink
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
org.jenkinsci.plugins.workflow.cps.Snippetizer.LocalAction, org.jenkinsci.plugins.workflow.cps.Snippetizer.PerJobAdder, org.jenkinsci.plugins.workflow.cps.Snippetizer.QuasiDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
ACTION_URL, GENERATE_URL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToDec
(String pipelinePay) JavaScriptMethod implementation converting Pipeline As YAML to Pipeline Declarative ScriptparseAndValidatePay
(String pipelinePay) JavaScriptMethod implementation for Parse and Validate Pipeline As YAMLMethods inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
doGenerateSnippet, getDisplayName, getGlobalVariables, getIconFileName, getItem, getQuasiDescriptors, getSnippetizerLinks, object2Groovy, object2Groovy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
Field Details
-
snippetizerLink
- See Also:
-
-
Constructor Details
-
PipelineAsYamlSnippetizer
public PipelineAsYamlSnippetizer()
-
-
Method Details
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classorg.jenkinsci.plugins.workflow.cps.Snippetizer
-
convertToDec
JavaScriptMethod implementation converting Pipeline As YAML to Pipeline Declarative Script- Parameters:
pipelinePay
- Pipeline As YAML Script- Returns:
- Pipeline Declarative Script
-
parseAndValidatePay
JavaScriptMethod implementation for Parse and Validate Pipeline As YAML- Parameters:
pipelinePay
- Pipeline As YAML Script- Returns:
- Validation Output
-