public class GitHubSCMFileSystem extends jenkins.scm.api.SCMFileSystem
SCMFileSystem
for GitHub.Modifier and Type | Class and Description |
---|---|
static class |
GitHubSCMFileSystem.BuilderImpl |
jenkins.scm.api.SCMFileSystem.Builder
Modifier | Constructor and Description |
---|---|
protected |
GitHubSCMFileSystem(org.kohsuke.github.GitHub gitHub,
org.kohsuke.github.GHRepository repo,
String refName,
jenkins.scm.api.SCMRevision rev)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
changesSince(jenkins.scm.api.SCMRevision revision,
OutputStream changeLogStream) |
void |
close() |
jenkins.scm.api.SCMFile |
getRoot() |
boolean |
isOpen() |
long |
lastModified() |
child, getRevision, isFixedRevision, of, of, of, of, supports, supports, supports, supports
protected GitHubSCMFileSystem(org.kohsuke.github.GitHub gitHub, org.kohsuke.github.GHRepository repo, String refName, @CheckForNull jenkins.scm.api.SCMRevision rev) throws IOException
gitHub
- the GitHub
repo
- the GHRepository
refName
- the ref name, e.g. heads/branchName
, tags/tagName
, pull/N/head
or the SHA.rev
- the optional revision.IOException
- if I/O errors occur.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class jenkins.scm.api.SCMFileSystem
IOException
public boolean isOpen()
public long lastModified() throws IOException
lastModified
in class jenkins.scm.api.SCMFileSystem
IOException
public boolean changesSince(jenkins.scm.api.SCMRevision revision, @NonNull OutputStream changeLogStream) throws UnsupportedOperationException, IOException, InterruptedException
changesSince
in class jenkins.scm.api.SCMFileSystem
UnsupportedOperationException
IOException
InterruptedException
@NonNull public jenkins.scm.api.SCMFile getRoot()
getRoot
in class jenkins.scm.api.SCMFileSystem
Copyright © 2016–2019. All rights reserved.