Class ModelConverterAction

java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.endpoints.ModelConverterAction
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction

@Extension public class ModelConverterAction extends Object implements RootAction
Endpoint for converting to/from JSON/Groovy and validating both.
Author:
Andrew Bayer
  • Field Details

  • Constructor Details

    • ModelConverterAction

      public ModelConverterAction()
  • Method Details

    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • doToJenkinsfile

      public org.kohsuke.stapler.HttpResponse doToJenkinsfile(org.kohsuke.stapler.StaplerRequest req)
    • doToJson

      public org.kohsuke.stapler.HttpResponse doToJson(org.kohsuke.stapler.StaplerRequest req)
    • doStepsToJson

      public org.kohsuke.stapler.HttpResponse doStepsToJson(org.kohsuke.stapler.StaplerRequest req)
    • doStepsToJenkinsfile

      public org.kohsuke.stapler.HttpResponse doStepsToJenkinsfile(org.kohsuke.stapler.StaplerRequest req)
    • doValidateJenkinsfile

      public org.kohsuke.stapler.HttpResponse doValidateJenkinsfile(org.kohsuke.stapler.StaplerRequest req)
    • doValidateJson

      public org.kohsuke.stapler.HttpResponse doValidateJson(org.kohsuke.stapler.StaplerRequest req)
    • doValidate

      public org.kohsuke.stapler.HttpResponse doValidate(org.kohsuke.stapler.StaplerRequest req)
    • errorToStrings

      public static List<String> errorToStrings(Exception e)