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
ImplementsSCMFileSystem
for GitHub.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubSCMFileSystem.BuilderImpl
-
Constructor Summary
Constructors Modifier Constructor Description protected
GitHubSCMFileSystem(org.kohsuke.github.GitHub gitHub, org.kohsuke.github.GHRepository repo, String refName, jenkins.scm.api.SCMRevision rev)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
changesSince(jenkins.scm.api.SCMRevision revision, OutputStream changeLogStream)
void
close()
jenkins.scm.api.SCMFile
getRoot()
boolean
isOpen()
long
lastModified()
-
-
-
Constructor Detail
-
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 Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classjenkins.scm.api.SCMFileSystem
- Throws:
IOException
-
isOpen
public boolean isOpen()
-
lastModified
public long lastModified() throws IOException
- 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
-
-