public class SwarmScmSource extends AbstractP4ScmSource
Modifier and Type | Class and Description |
---|---|
static class |
SwarmScmSource.DescriptorImpl |
credential, defaultExcludes
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(TempClientHelper p4,
P4SCMHead head)
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.
|
protected List<hudson.model.Action> |
retrieveActions(jenkins.scm.api.SCMHead head,
jenkins.scm.api.SCMHeadEvent event,
hudson.model.TaskListener listener)
SCMHead level action.
|
void |
setProject(String project) |
void |
setSwarm(SwarmHelper swarm) |
build, createProbe, getCharset, getCredential, getExcludes, getFilter, getFormat, getIncludePaths, getIncludes, getPopulate, getProperty, getScanner, getScriptPathOrDefault, getTraits, retrieve, retrieveActions, retrieveActions, setCharset, setExcludes, 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
protected List<hudson.model.Action> retrieveActions(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, hudson.model.TaskListener listener) throws IOException, InterruptedException
AbstractP4ScmSource
retrieveActions
in class AbstractP4ScmSource
head
- Changes on a branchevent
- Optional event (might be null) use payload to help filter calls.listener
- the listener to report progress on.Action
instances to persist.IOException
- if an error occurs while performing the operation.InterruptedException
- if any thread has interrupted the current thread.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(TempClientHelper p4, P4SCMHead head) throws Exception
AbstractP4ScmSource
getRevision
in class AbstractP4ScmSource
p4
- TempClient instancehead
- SCMHeadException
- 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–2022. All rights reserved.