Class GitHubSCMFileSystem
java.lang.Object
jenkins.scm.api.SCMFileSystem
org.jenkinsci.plugins.github_branch_source.GitHubSCMFileSystem
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class GitHubSCMFileSystem
extends jenkins.scm.api.SCMFileSystem
Implements
SCMFileSystem
for GitHub.-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.scm.api.SCMFileSystem
jenkins.scm.api.SCMFileSystem.Builder
-
Constructor Summary
ModifierConstructorDescriptionprotected
GitHubSCMFileSystem
(org.kohsuke.github.GitHub gitHub, org.kohsuke.github.GHRepository repo, String refName, jenkins.scm.api.SCMRevision rev) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
changesSince
(jenkins.scm.api.SCMRevision revision, OutputStream changeLogStream) void
close()
jenkins.scm.api.SCMFile
getRoot()
boolean
isOpen()
long
Methods inherited from class jenkins.scm.api.SCMFileSystem
child, getRevision, isFixedRevision, of, of, of, of, of, supports, supports, supports, supports
-
Constructor Details
-
GitHubSCMFileSystem
protected GitHubSCMFileSystem(org.kohsuke.github.GitHub gitHub, org.kohsuke.github.GHRepository repo, String refName, @CheckForNull jenkins.scm.api.SCMRevision rev) throws IOException Constructor.- Parameters:
gitHub
- theGitHub
repo
- theGHRepository
refName
- the ref name, e.g.heads/branchName
,tags/tagName
,pull/N/head
or the SHA.rev
- the optional revision.- Throws:
IOException
- if I/O errors occur.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classjenkins.scm.api.SCMFileSystem
- Throws:
IOException
-
isOpen
public boolean isOpen() -
lastModified
- Specified by:
lastModified
in classjenkins.scm.api.SCMFileSystem
- Throws:
IOException
-
changesSince
public boolean changesSince(jenkins.scm.api.SCMRevision revision, @NonNull OutputStream changeLogStream) throws UnsupportedOperationException, IOException, InterruptedException - Overrides:
changesSince
in classjenkins.scm.api.SCMFileSystem
- Throws:
UnsupportedOperationException
IOException
InterruptedException
-
getRoot
@NonNull public jenkins.scm.api.SCMFile getRoot()- Specified by:
getRoot
in classjenkins.scm.api.SCMFileSystem
-