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 ClassesNested classes/interfaces inherited from class jenkins.scm.api.SCMFileSystem
jenkins.scm.api.SCMFileSystem.Builder -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGitHubSCMFileSystem(org.kohsuke.github.GitHub gitHub, org.kohsuke.github.GHRepository repo, String refName, jenkins.scm.api.SCMRevision rev) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanchangesSince(jenkins.scm.api.SCMRevision revision, OutputStream changeLogStream) voidclose()jenkins.scm.api.SCMFilegetRoot()booleanisOpen()longMethods 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- theGitHubrepo- theGHRepositoryrefName- the ref name, e.g.heads/branchName,tags/tagName,pull/N/heador the SHA.rev- the optional revision.- Throws:
IOException- if I/O errors occur.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classjenkins.scm.api.SCMFileSystem- Throws:
IOException
-
isOpen
public boolean isOpen() -
lastModified
- Specified by:
lastModifiedin classjenkins.scm.api.SCMFileSystem- Throws:
IOException
-
changesSince
public boolean changesSince(jenkins.scm.api.SCMRevision revision, @NonNull OutputStream changeLogStream) throws UnsupportedOperationException, IOException, InterruptedException - Overrides:
changesSincein classjenkins.scm.api.SCMFileSystem- Throws:
UnsupportedOperationExceptionIOExceptionInterruptedException
-
getRoot
@NonNull public jenkins.scm.api.SCMFile getRoot()- Specified by:
getRootin classjenkins.scm.api.SCMFileSystem
-