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

@Extension public class ASTSchema extends Object implements RootAction
Endpoint for exposing the AST JSON schema.
Author:
Andrew Bayer
  • Field Details

  • Constructor Details

    • ASTSchema

      public ASTSchema()
  • 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
    • doJson

      public void doJson(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • getJSONSchema

      public static com.github.fge.jsonschema.main.JsonSchema getJSONSchema() throws com.github.fge.jsonschema.core.exceptions.ProcessingException
      Get the Pipeline Config AST JSON schema.
      Returns:
      the schema in JsonSchema form.
      Throws:
      com.github.fge.jsonschema.core.exceptions.ProcessingException - if there are issues reading the schema