public class SwarmScmSource extends AbstractP4ScmSource
Modifier and Type | Class and Description |
---|---|
static class |
SwarmScmSource.DescriptorImpl |
credential
Constructor and Description |
---|
SwarmScmSource(String credential,
String charset,
String format) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
findInclude(String path) |
P4Browser |
getBrowser() |
List<P4SCMHead> |
getHeads(hudson.model.TaskListener listener) |
String |
getProject() |
P4SCMRevision |
getRevision(net.sf.json.JSONObject payload)
A specific revision based on the Event Payload.
|
P4SCMRevision |
getRevision(P4SCMHead head,
hudson.model.TaskListener listener)
Get the Latest change for the path specified in P4SCMHead.
|
SwarmHelper |
getSwarm() |
List<P4SCMHead> |
getTags(hudson.model.TaskListener listener) |
Workspace |
getWorkspace(P4Path path) |
protected boolean |
isCategoryEnabled(jenkins.scm.api.SCMHeadCategory category)
Enable specific SCMHeadCategory categories.
|
void |
setProject(String project) |
void |
setSwarm(SwarmHelper swarm) |
build, createProbe, getCharset, getCredential, getFilter, getFormat, getIncludePaths, getIncludes, getPopulate, getProperty, getScanner, getScriptPathOrDefault, getTraits, retrieve, retrieveActions, retrieveActions, retrieveActions, setCharset, setFilter, setFormat, setIncludes, setPopulate, setTraits, toLines
afterSave, build, canProbe, checkInterrupt, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, getTrustedRevision, hashCode, hasId, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveRevisions, setId, setOwner, toString, withId
@DataBoundSetter public void setProject(String project)
public String getProject()
public SwarmHelper getSwarm() throws Exception
Exception
public void setSwarm(SwarmHelper swarm)
public P4Browser getBrowser()
getBrowser
in class AbstractP4ScmSource
public List<P4SCMHead> getTags(@NonNull hudson.model.TaskListener listener) throws Exception
getTags
in class AbstractP4ScmSource
Exception
public List<P4SCMHead> getHeads(@NonNull hudson.model.TaskListener listener) throws Exception
getHeads
in class AbstractP4ScmSource
Exception
public P4SCMRevision getRevision(P4SCMHead head, hudson.model.TaskListener listener) throws Exception
AbstractP4ScmSource
getRevision
in class AbstractP4ScmSource
head
- SCMHeadlistener
- for loggingException
- pushed up stackpublic P4SCMRevision getRevision(net.sf.json.JSONObject payload)
getRevision
in class AbstractP4ScmSource
payload
- JSON payload from an external Eventprotected boolean findInclude(String path)
findInclude
in class AbstractP4ScmSource
public Workspace getWorkspace(P4Path path)
getWorkspace
in class AbstractP4ScmSource
protected boolean isCategoryEnabled(@NonNull jenkins.scm.api.SCMHeadCategory category)
AbstractP4ScmSource
TagSCMHeadCategory: Branches, Streams, Swarm and Graph ChangeRequestSCMHeadCategory: Swarm and Graph
isCategoryEnabled
in class AbstractP4ScmSource
category
- the Categorytrue
if the supplied category is enabled for this SCMSource
instance.Copyright © 2016–2019. All rights reserved.