Class ASTSchema
- 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static StringAST_SCHEMA_URL
-
Constructor Summary
Constructors Constructor Description ASTSchema()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoJson(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)StringgetDisplayName()StringgetIconFileName()static com.github.fge.jsonschema.main.JsonSchemagetJSONSchema()Get the Pipeline Config AST JSON schema.StringgetUrlName()
-
-
-
Field Detail
-
AST_SCHEMA_URL
public static final String AST_SCHEMA_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUrlName
public String getUrlName()
- Specified by:
getUrlNamein interfaceAction
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
doJson
public void doJson(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
getJSONSchema
public static com.github.fge.jsonschema.main.JsonSchema getJSONSchema() throws com.github.fge.jsonschema.exceptions.ProcessingExceptionGet the Pipeline Config AST JSON schema.- Returns:
- the schema in
JsonSchemaform. - Throws:
com.github.fge.jsonschema.exceptions.ProcessingException- if there are issues reading the schema
-
-