Package org.jenkinsci.plugins.p4.scm
Class SwarmScmSource
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.SwarmScmSource
- All Implemented Interfaces:
ExtensionPoint,Describable<jenkins.scm.api.SCMSource>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItemNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.p4.scm.AbstractP4ScmSource
credential, defaultExcludesFields inherited from class jenkins.scm.api.SCMSource
PRONOUN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfindInclude(String path) getHeads(TaskListener listener) getRevision(net.sf.json.JSONObject payload) A specific revision based on the Event Payload.getRevision(TempClientHelper p4, P4SCMHead head) Get the Latest change for the path specified in P4SCMHead.getSwarm()getTags(TaskListener listener) getWorkspace(P4Path path) protected booleanisCategoryEnabled(jenkins.scm.api.SCMHeadCategory category) Enable specific SCMHeadCategory categories.retrieveActions(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, TaskListener listener) SCMHead level action.voidsetProject(String project) voidsetSwarm(SwarmHelper swarm) Methods inherited from class org.jenkinsci.plugins.p4.scm.AbstractP4ScmSource
build, createProbe, getCharset, getCredential, getExcludes, getFilter, getFormat, getIncludePaths, getIncludes, getPopulate, getProperty, getScanner, getScriptPathOrDefault, getTraits, pathContainsFolderPropertyVar, retrieve, retrieveActions, retrieveActions, setCharset, setExcludes, setFilter, setFormat, setIncludes, setPopulate, setTraits, toLinesMethods 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
-
Constructor Details
-
Method Details
-
setProject
-
getProject
-
getSwarm
- Throws:
Exception
-
setSwarm
-
getBrowser
- Specified by:
getBrowserin classAbstractP4ScmSource
-
retrieveActions
protected List<Action> retrieveActions(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, TaskListener listener) throws IOException, InterruptedException Description copied from class:AbstractP4ScmSourceSCMHead level action.- Overrides:
retrieveActionsin classAbstractP4ScmSource- Parameters:
head- Changes on a branchevent- Optional event (might be null) use payload to help filter calls.listener- the listener to report progress on.- Returns:
- the list of
Actioninstances to persist. - Throws:
IOException- if an error occurs while performing the operation.InterruptedException- if any thread has interrupted the current thread.
-
getTags
- Specified by:
getTagsin classAbstractP4ScmSource- Throws:
Exception
-
getHeads
- Specified by:
getHeadsin classAbstractP4ScmSource- Throws:
Exception
-
getRevision
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
-
getRevision
A specific revision based on the Event Payload.- Overrides:
getRevisionin classAbstractP4ScmSource- Parameters:
payload- JSON payload from an external Event- Returns:
- the change as a P4SCMRevision object or null if no match.
-
findInclude
- Overrides:
findIncludein classAbstractP4ScmSource
-
getWorkspace
- Specified by:
getWorkspacein classAbstractP4ScmSource
-
isCategoryEnabled
protected boolean isCategoryEnabled(@NonNull jenkins.scm.api.SCMHeadCategory category) Description copied from class:AbstractP4ScmSourceEnable specific SCMHeadCategory categories.TagSCMHeadCategory: Branches, Streams, Swarm and Graph ChangeRequestSCMHeadCategory: Swarm and Graph
- Overrides:
isCategoryEnabledin classAbstractP4ScmSource- Parameters:
category- the Category- Returns:
trueif the supplied category is enabled for thisSCMSourceinstance.
-