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)
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository
workspace
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSingleFileToRepo
(String fileName) adds and commits a single file to this git repoprotected void
getLog()
int
void
boolean
void
rmSingleFileToRepo
(String fileName) adds and commits a single file to this git repoprotected void
updateWorkspace
(org.eclipse.jgit.lib.Repository repo) Methods inherited from class org.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository
createInitialRepository, createReceivePack, createReceivePack, createUploadPack, openRepository
Methods inherited from class org.jenkinsci.plugins.gitserver.HttpGitRepository
checkPullPermission, doDynamic, init
-
Constructor Details
-
GitScriptlerRepository
public GitScriptlerRepository()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- See Also:
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- See Also:
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- See Also:
-
getHttpCloneUrl
-
getSshdPort
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public int getSshdPort() -
getSshCloneUrl
- Throws:
MalformedURLException
-
hasPushPermission
public boolean hasPushPermission() -
getScriptler
-
checkPushPermission
protected void checkPushPermission()- Specified by:
checkPushPermission
in classorg.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 classorg.jenkinsci.plugins.gitserver.FileBackedHttpGitRepository
- Throws:
IOException
org.eclipse.jgit.api.errors.GitAPIException
-
addSingleFileToRepo
adds and commits a single file to this git repo- Parameters:
fileName
- must be relative to repo root dir
-
rmSingleFileToRepo
adds and commits a single file to this git repo- Parameters:
fileName
- must be relative to repo root dir
-
hardReset
- Throws:
IOException
-
getLog
- Throws:
IOException
-