Class BluePipelineScm

java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BluePipelineScm
All Implemented Interfaces:
Reachable

public abstract class BluePipelineScm extends Resource
SCM resource attached to a pipeline
Author:
Vivek Pandey
  • 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