Class 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 Detail

      • GitReadSaveService

        public GitReadSaveService()
    • Method Detail

      • 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
      • 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)