Class GitReadSaveService

java.lang.Object
io.jenkins.blueocean.rest.impl.pipeline.ScmContentProvider
io.jenkins.blueocean.blueocean_git_pipeline.GitReadSaveService
All Implemented Interfaces:
ExtensionPoint

@Extension public class GitReadSaveService extends io.jenkins.blueocean.rest.impl.pipeline.ScmContentProvider
Content provider for load/save with git repositories
  • Constructor Details

    • GitReadSaveService

      public GitReadSaveService()
  • Method Details

    • getScmId

      @NonNull public String getScmId()
      Specified by:
      getScmId in class io.jenkins.blueocean.rest.impl.pipeline.ScmContentProvider
    • getApiUrl

      public String getApiUrl(@NonNull Item item)
      Specified by:
      getApiUrl in class io.jenkins.blueocean.rest.impl.pipeline.ScmContentProvider
    • setType

      public static void setType(@NonNull GitReadSaveService.ReadSaveType type)
    • getContent

      public Object getContent(@NonNull org.kohsuke.stapler.StaplerRequest req, @NonNull Item item)
      Specified by:
      getContent in class io.jenkins.blueocean.rest.impl.pipeline.ScmContentProvider
    • saveContent

      public Object saveContent(@NonNull org.kohsuke.stapler.StaplerRequest req, @NonNull Item item)
      Specified by:
      saveContent in class io.jenkins.blueocean.rest.impl.pipeline.ScmContentProvider
    • support

      public boolean support(@NonNull Item item)
      Specified by:
      support in class io.jenkins.blueocean.rest.impl.pipeline.ScmContentProvider
    • getCredentialForUser

      @NonNull protected com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentialForUser(@NonNull Item item, @NonNull String repositoryUrl)