Package org.jenkinsci.plugins.p4.scm
Class GraphScmSource
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
-
- jenkins.scm.api.SCMSource
-
- org.jenkinsci.plugins.p4.scm.AbstractP4ScmSource
-
- org.jenkinsci.plugins.p4.scm.GraphScmSource
-
- All Implemented Interfaces:
ExtensionPoint,Describable<jenkins.scm.api.SCMSource>
public class GraphScmSource extends AbstractP4ScmSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphScmSource.DescriptorImpl-
Nested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItem
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.p4.scm.AbstractP4ScmSource
credential, defaultExcludes
-
-
Constructor Summary
Constructors Constructor Description GraphScmSource(String credential, String includes, String charset, String format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description P4BrowsergetBrowser()List<P4SCMHead>getHeads(TaskListener listener)P4SCMRevisiongetRevision(TempClientHelper p4, P4SCMHead head)Get the Latest change for the path specified in P4SCMHead.List<P4SCMHead>getTags(TaskListener listener)WorkspacegetWorkspace(P4Path path)voidsetBrowser(P4Browser browser)-
Methods inherited from class org.jenkinsci.plugins.p4.scm.AbstractP4ScmSource
build, createProbe, findInclude, getCharset, getCredential, getExcludes, getFilter, getFormat, getIncludePaths, getIncludes, getPopulate, getProperty, getRevision, getScanner, getScriptPathOrDefault, getTraits, isCategoryEnabled, pathContainsFolderPropertyVar, retrieve, retrieveActions, retrieveActions, retrieveActions, setCharset, setExcludes, setFilter, setFormat, setIncludes, setPopulate, setTraits, toLines
-
Methods inherited from class jenkins.scm.api.SCMSource
afterSave, build, canProbe, checkInterrupt, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, getTrustedRevision, hashCode, hasId, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveRevisions, retrieveRevisions, setId, setOwner, toString, withId
-
-
-
-
Method Detail
-
setBrowser
@DataBoundSetter public void setBrowser(P4Browser browser)
-
getBrowser
public P4Browser getBrowser()
- Specified by:
getBrowserin classAbstractP4ScmSource
-
getTags
public List<P4SCMHead> getTags(@NonNull TaskListener listener) throws Exception
- Specified by:
getTagsin classAbstractP4ScmSource- Throws:
Exception
-
getHeads
public List<P4SCMHead> getHeads(@NonNull TaskListener listener) throws Exception
- Specified by:
getHeadsin classAbstractP4ScmSource- Throws:
Exception
-
getRevision
public P4SCMRevision getRevision(TempClientHelper p4, P4SCMHead head) throws Exception
Description copied from class:AbstractP4ScmSourceGet the Latest change for the path specified in P4SCMHead.- Overrides:
getRevisionin classAbstractP4ScmSource- Parameters:
p4- TempClient instancehead- SCMHead- Returns:
- The latest change as a P4SCMRevision object
- Throws:
Exception- pushed up stack
-
getWorkspace
public Workspace getWorkspace(P4Path path)
- Specified by:
getWorkspacein classAbstractP4ScmSource
-
-