Class GerritSCMFileSystem
java.lang.Object
jenkins.scm.api.SCMFileSystem
io.jenkins.plugins.gerritlightweight.GerritSCMFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class GerritSCMFileSystem
extends jenkins.scm.api.SCMFileSystem
A commit-pinned, REST-backed view for reading a Pipeline script.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSelects REST retrieval for Git SCMs explicitly configured withGerritRestCheckout.Nested classes/interfaces inherited from class jenkins.scm.api.SCMFileSystem
jenkins.scm.api.SCMFileSystem.Builder -
Method Summary
Methods inherited from class jenkins.scm.api.SCMFileSystem
changesSince, child, getRevision, isFixedRevision, of, of, of, of, of, supports, supports, supports, supports
-
Method Details
-
lastModified
public long lastModified()Returns zero because filesystem modification times are unsupported.- Specified by:
lastModifiedin classjenkins.scm.api.SCMFileSystem- Returns:
0
-
close
public void close()Releases no resources; the client disconnects each HTTP request immediately after reading it.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classjenkins.scm.api.SCMFileSystem
-
getRoot
@NonNull public jenkins.scm.api.SCMFile getRoot()Returns the root of the commit-pinned file view.- Specified by:
getRootin classjenkins.scm.api.SCMFileSystem- Returns:
- root supporting repository-relative file reads
-