public abstract class RepositoryResolver extends Object implements hudson.ExtensionPoint
Repository.
This extension point allows multiple plugins to expose their Git repositories via SSH/Git protocol.
Both methods of this interface uses the parameter 'fullRepositoryName'.
This parameter represents the repository path name as given by git client. For example, "foo/bar.git" for client running "git push jenkins:foo/bar.git" and "/foo/bar.git" for client running "git push ssh://jenkins/foo/bar.git".
To avoid conflicts, plugins are highly encouraged to require a known prefix. For example, if you are implementing acme-plugin, you should only recognize "acme/foo.git" or "acme/foo/bar.git" but not "foo.git"
Similarly, because of the difference in the way the leading '/' appears based on the protocol, most implementations should support both "/acme/foo.git" and "acme/foo.git".
HttpGitRepository| Constructor and Description |
|---|
RepositoryResolver() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<RepositoryResolver> |
all() |
abstract org.eclipse.jgit.transport.ReceivePack |
createReceivePack(String fullRepositoryName)
Returns
ReceivePack used to handle "git push" operation from a client. |
abstract org.eclipse.jgit.transport.UploadPack |
createUploadPack(String fullRepositoryName)
Returns
UploadPack used to handle "git fetch" operation from a client. |
public abstract org.eclipse.jgit.transport.ReceivePack createReceivePack(String fullRepositoryName) throws IOException, InterruptedException
ReceivePack used to handle "git push" operation from a client.fullRepositoryName - The repository path name as given by git client.
See class javadoc for details.RepositoryResolvers to get a shot at the repository.IOExceptionInterruptedExceptionpublic abstract org.eclipse.jgit.transport.UploadPack createUploadPack(String fullRepositoryName) throws IOException, InterruptedException
UploadPack used to handle "git fetch" operation from a client.fullRepositoryName - The repository path name as given by git client.
See class javadoc for details.RepositoryResolvers to get a shot at the repository.IOExceptionInterruptedExceptionpublic static hudson.ExtensionList<RepositoryResolver> all() throws IllegalStateException
IllegalStateExceptionCopyright © 2016. All rights reserved.