Package io.jenkins.blueocean.rest.model
Class BluePipelineScm
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BluePipelineScm
- All Implemented Interfaces:
Reachable
SCM resource attached to a pipeline
- Author:
- Vivek Pandey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Object
getContent
(org.kohsuke.stapler.StaplerRequest request) Gives content in scm attached to a pipeline.abstract Object
saveContent
(org.kohsuke.stapler.StaplerRequest request) Save a file to this SCM repository attached to this pipeline.
-
Constructor Details
-
BluePipelineScm
public BluePipelineScm()
-
-
Method Details
-
getContent
@WebMethod(name="content") @GET public abstract Object getContent(org.kohsuke.stapler.StaplerRequest request) Gives content in scm attached to a pipeline.- Parameters:
request
- load scm request- Returns:
- scm file content
-
saveContent
@PUT @WebMethod(name="content") public abstract Object saveContent(org.kohsuke.stapler.StaplerRequest request) Save a file to this SCM repository attached to this pipeline. Creates a new one if it doesn't exist.- Parameters:
request
- save content to scm request- Returns:
- response specific to SCM specific file save response
-