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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Selects REST retrieval for Git SCMs explicitly configured with GerritRestCheckout.

    Nested classes/interfaces inherited from class jenkins.scm.api.SCMFileSystem

    jenkins.scm.api.SCMFileSystem.Builder
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases no resources; the client disconnects each HTTP request immediately after reading it.
    jenkins.scm.api.SCMFile
    Returns the root of the commit-pinned file view.
    long
    Returns zero because filesystem modification times are unsupported.

    Methods inherited from class jenkins.scm.api.SCMFileSystem

    changesSince, child, getRevision, isFixedRevision, of, of, of, of, of, supports, supports, supports, supports

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • lastModified

      public long lastModified()
      Returns zero because filesystem modification times are unsupported.
      Specified by:
      lastModified in class jenkins.scm.api.SCMFileSystem
      Returns:
      0
    • close

      public void close()
      Releases no resources; the client disconnects each HTTP request immediately after reading it.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class jenkins.scm.api.SCMFileSystem
    • getRoot

      @NonNull public jenkins.scm.api.SCMFile getRoot()
      Returns the root of the commit-pinned file view.
      Specified by:
      getRoot in class jenkins.scm.api.SCMFileSystem
      Returns:
      root supporting repository-relative file reads