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
  • Field Details

  • Constructor Details

    • PipelineAsYamlSnippetizer

      public PipelineAsYamlSnippetizer()
  • Method Details

    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
      Overrides:
      getUrlName in class org.jenkinsci.plugins.workflow.cps.Snippetizer
    • convertToDec

      @JavaScriptMethod public String convertToDec(String pipelinePay)
      JavaScriptMethod implementation converting Pipeline As YAML to Pipeline Declarative Script
      Parameters:
      pipelinePay - Pipeline As YAML Script
      Returns:
      Pipeline Declarative Script
    • parseAndValidatePay

      @JavaScriptMethod public String parseAndValidatePay(String pipelinePay)
      JavaScriptMethod implementation for Parse and Validate Pipeline As YAML
      Parameters:
      pipelinePay - Pipeline As YAML Script
      Returns:
      Validation Output