Class GitScriptlerRepository

java.lang.Object
org.jenkinsci.plugins.gitserver.HttpGitRepository
org.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository
org.jenkinsci.plugins.scriptler.git.GitScriptlerRepository
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction

@Extension public class GitScriptlerRepository extends org.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository implements RootAction
Exposes Git repository at /scriptler.git
Author:
Dominik Bartholdi (imod)
  • Constructor Details

    • GitScriptlerRepository

      public GitScriptlerRepository()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
      See Also:
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
      See Also:
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
      See Also:
    • getHttpCloneUrl

      public String getHttpCloneUrl()
    • getSshdPort

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public int getSshdPort()
    • getSshCloneUrl

      public String getSshCloneUrl() throws MalformedURLException
      Throws:
      MalformedURLException
    • hasPushPermission

      public boolean hasPushPermission()
    • getScriptler

      public Object getScriptler()
    • checkPushPermission

      protected void checkPushPermission()
      Specified by:
      checkPushPermission in class org.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository
      See Also:
      • FileBackedHttpGitRepository.checkPushPermission()
    • updateWorkspace

      protected void updateWorkspace(org.eclipse.jgit.lib.Repository repo) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
      Overrides:
      updateWorkspace in class org.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository
      Throws:
      IOException
      org.eclipse.jgit.api.errors.GitAPIException
    • addSingleFileToRepo

      public void addSingleFileToRepo(String fileName)
      adds and commits a single file to this git repo
      Parameters:
      fileName - must be relative to repo root dir
    • rmSingleFileToRepo

      public void rmSingleFileToRepo(String fileName)
      adds and commits a single file to this git repo
      Parameters:
      fileName - must be relative to repo root dir
    • hardReset

      public void hardReset() throws IOException
      Throws:
      IOException
    • getLog

      Throws:
      IOException