public abstract class SCMFileSystem extends Object
SCM potentially pinned to a specific SCMRevision.| Modifier and Type | Class and Description |
|---|---|
static class |
SCMFileSystem.Builder
Extension point that allows different plugins to implement
SCMFileSystem classes for the same SCM
or SCMSource and let Jenkins pick the most capable for any specific SCM implementation. |
| Modifier | Constructor and Description |
|---|---|
protected |
SCMFileSystem(SCMRevision rev) |
| Modifier and Type | Method and Description |
|---|---|
SCMFile |
get(String path)
Short for
getRoot().get(path) |
SCMRevision |
getRevision()
If this inspector is looking at the specific commit,
returns that revision.
|
abstract SCMFile |
getRoot()
Returns the
SCMFile object that represents the root directory of the repository. |
boolean |
isFixedRevision()
Whether this inspector is looking at the specific commit.
|
static SCMFileSystem |
of(hudson.scm.SCM scm)
Given a
SCM this method will try to retrieve a corresponding SCMFileSystem instance. |
static SCMFileSystem |
of(hudson.scm.SCM scm,
SCMRevision rev)
Given a
SCM this method will try to retrieve a corresponding SCMFileSystem instance that
reflects the content at the specified SCMRevision. |
static SCMFileSystem |
of(SCMSource source,
SCMHead head)
Given a
SCMSource and a SCMHead this method will try to retrieve a corresponding
SCMFileSystem instance that reflects the content of the specified SCMHead. |
static SCMFileSystem |
of(SCMSource source,
SCMHead head,
SCMRevision rev)
Given a
SCMSource, a SCMHead and a SCMRevision this method will try to retrieve a
corresponding SCMFileSystem instance that reflects the content of the specified SCMHead at the
specified SCMRevision. |
protected SCMFileSystem(@CheckForNull
SCMRevision rev)
@CheckForNull public SCMRevision getRevision()
public final boolean isFixedRevision()
getRevision()!=null.@CheckForNull public final SCMFile get(@NonNull String path) throws IOException
getRoot().get(path)IOException@NonNull public abstract SCMFile getRoot() throws IOException
SCMFile object that represents the root directory of the repository.IOException@CheckForNull public static SCMFileSystem of(@NonNull hudson.scm.SCM scm)
SCM this method will try to retrieve a corresponding SCMFileSystem instance.scm - the SCM.SCMFileSystem or null if there is none.@CheckForNull public static SCMFileSystem of(@NonNull hudson.scm.SCM scm, @CheckForNull SCMRevision rev)
SCM this method will try to retrieve a corresponding SCMFileSystem instance that
reflects the content at the specified SCMRevision.scm - the SCM.rev - the specified SCMRevision.SCMFileSystem or null if there is none.@CheckForNull public static SCMFileSystem of(@NonNull SCMSource source, @NonNull SCMHead head)
SCMSource and a SCMHead this method will try to retrieve a corresponding
SCMFileSystem instance that reflects the content of the specified SCMHead.source - the SCMSource.head - the specified SCMHead.SCMFileSystem or null if there is none.@CheckForNull public static SCMFileSystem of(@NonNull SCMSource source, @NonNull SCMHead head, @CheckForNull SCMRevision rev)
SCMSource, a SCMHead and a SCMRevision this method will try to retrieve a
corresponding SCMFileSystem instance that reflects the content of the specified SCMHead at the
specified SCMRevision.source - the SCMSource.head - the specified SCMHead.rev - the specified SCMRevision.SCMFileSystem or null if there is none.Copyright © 2004-2013. All Rights Reserved.