public abstract class SCM2 extends SCM
SCM implementations that only want to handle one event system and
are consolidating on the SCM API event system. It is not strictly required to extend from this class in place of
SCM but typically implementations would need to have the functionality made available from
afterSave(SCMTriggerItem) and/or getItemActions(SCMTriggerItem). Implementations that do
not require these features can get integration with the SCM API event subsystem by implementing
SCMHeadEvent.isMatch(SCM).SCM2TransientActionFactory,
SCM2Notifier,
SCMHeadEvent.isMatch(SCM)ExtensionPoint.LegacyInstancesAreScopedToHudsonPERMISSIONS, TAG| Constructor and Description |
|---|
SCM2() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSave(SCMTriggerItem owner)
Callback from the
SCMTriggerItem after the SCMTriggerItem has been saved. |
Collection<? extends Action> |
getItemActions(SCMTriggerItem owner)
Actions to be displayed in the SCMTriggerItem page. |
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, calcRevisionsFromBuild, calcRevisionsFromBuild, checkout, checkout, compareRemoteRevisionWith, compareRemoteRevisionWith, createChangeLogParser, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPollingpublic void afterSave(SCMTriggerItem owner)
SCMTriggerItem after the SCMTriggerItem has been saved. Can be used to
register the SCMTriggerItem for a call-back hook from the backing SCM that this source is for.
Implementations are responsible for ensuring that they do not create duplicate registrations and that orphaned
registrations are removed eventually.owner - the owner of this SCM2.SCMTriggerListener,
SCMTrigger.isIgnorePostCommitHooks(),
SCMHeadEvent.isMatch(SCM)public Collection<? extends Action> getItemActions(SCMTriggerItem owner)
Actions to be displayed in the SCMTriggerItem page.owner - the owner of this SCM2.Copyright © 2016–2019. All rights reserved.