public class AccurevSCM
extends hudson.scm.SCM
Modifier and Type | Class and Description |
---|---|
static class |
AccurevSCM.AccurevSCMDescriptor |
static class |
AccurevSCM.AccurevServer |
Modifier and Type | Field and Description |
---|---|
protected static List<String> |
DEFAULT_VALID_STREAM_TRANSACTION_TYPES |
protected static List<String> |
DEFAULT_VALID_WORKSPACE_TRANSACTION_TYPES |
static ReentrantLock |
MASTER_LOCK
The accurev server has been known to crash if more than one copy of the accurev has been run
concurrently on the local machine.
|
Constructor and Description |
---|
AccurevSCM(String serverName,
String depot,
String stream)
Deprecated.
|
AccurevSCM(String serverName,
String serverUUID,
String depot,
String stream)
Deprecated.
|
AccurevSCM(String serverName,
String serverUUID,
String depot,
String stream,
String wspaceORreftree) |
Modifier and Type | Method and Description |
---|---|
void |
buildEnvironment(hudson.model.Run<?,?> build,
Map<String,String> env)
Exposes AccuRev-specific information to the environment.
|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
checkout(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
File changelogFile,
hudson.scm.SCMRevisionState baseline) |
hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.Job<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline) |
static AccurevSCM.AccurevSCMDescriptor |
configuration() |
hudson.scm.ChangeLogParser |
createChangeLogParser() |
String |
getAccurevTool() |
String |
getDepot() |
AccurevSCM.AccurevSCMDescriptor |
getDescriptor() |
String |
getDirectoryOffset() |
String |
getFilterForPollSCM() |
ReentrantLock |
getMandatoryLock(hudson.FilePath workspace)
Gets the lock to be used on accurev commands where synchronization is mandatory.
|
ReentrantLock |
getOptionalLock(hudson.FilePath workspace)
Gets the lock to be used on "normal" accurev commands, or
null if command
synchronization is switched off. |
String |
getPollingStream(hudson.model.Job<?,?> project,
hudson.model.TaskListener listener) |
String |
getReftree() |
AccurevSCM.AccurevServer |
getServer()
Getter for Accurev server
|
String |
getServerName() |
String |
getServerUUID() |
String |
getSnapshotNameFormat() |
String |
getStream() |
String |
getSubPath() |
boolean |
getSubPathOnly() |
String |
getWorkspace() |
String |
getWspaceORreftree() |
boolean |
hasStringVariableReference(String str) |
boolean |
isCleanreftree() |
boolean |
isDontPopContent() |
boolean |
isIgnoreStreamParent() |
boolean |
isNoWspaceNoReftree() |
boolean |
isSynctime() |
boolean |
isUseReftree() |
boolean |
isUseSnapshot() |
boolean |
isUseWorkspace() |
boolean |
requiresWorkspaceForPolling() |
void |
setAccurevTool(String accurevTool) |
void |
setCleanreftree(boolean cleanreftree) |
void |
setDirectoryOffset(String directoryOffset) |
void |
setDontPopContent(boolean dontPopContent) |
void |
setFilterForPollSCM(String filterForPollSCM) |
void |
setIgnoreStreamParent(boolean ignoreStreamParent) |
void |
setReftree(String reftree) |
void |
setServerName(String serverName) |
void |
setServerUUID(String uuid) |
void |
setSnapshotNameFormat(String snapshotNameFormat) |
void |
setSubPath(String subPath) |
void |
setSubPathOnly(boolean subPathOnly) |
void |
setSynctime(boolean synctime) |
void |
setUseSnapshot(boolean useSnapshot) |
void |
setWorkspace(String workspace) |
void |
setWspaceORreftree(String wspaceORreftree) |
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPolling
protected static final List<String> DEFAULT_VALID_STREAM_TRANSACTION_TYPES
protected static final List<String> DEFAULT_VALID_WORKSPACE_TRANSACTION_TYPES
public static final ReentrantLock MASTER_LOCK
@Deprecated public AccurevSCM(String serverName, String depot, String stream)
@Deprecated public AccurevSCM(String serverName, String serverUUID, String depot, String stream)
public static AccurevSCM.AccurevSCMDescriptor configuration()
public String getDepot()
public String getServerName()
@DataBoundSetter public void setServerName(String serverName)
public String getServerUUID()
@DataBoundSetter public void setServerUUID(String uuid)
@CheckForNull public AccurevSCM.AccurevServer getServer()
public String getStream()
public String getWspaceORreftree()
@DataBoundSetter public void setWspaceORreftree(String wspaceORreftree)
public String getReftree()
@DataBoundSetter public void setReftree(String reftree)
public String getWorkspace()
@DataBoundSetter public void setWorkspace(String workspace)
@CheckForNull public String getAccurevTool()
@DataBoundSetter public void setAccurevTool(String accurevTool)
public String getSubPath()
@DataBoundSetter public void setSubPath(String subPath)
public boolean getSubPathOnly()
@DataBoundSetter public void setSubPathOnly(boolean subPathOnly)
public String getFilterForPollSCM()
@DataBoundSetter public void setFilterForPollSCM(String filterForPollSCM)
public String getSnapshotNameFormat()
@DataBoundSetter public void setSnapshotNameFormat(String snapshotNameFormat)
public boolean isIgnoreStreamParent()
@DataBoundSetter public void setIgnoreStreamParent(boolean ignoreStreamParent)
public boolean isSynctime()
@DataBoundSetter public void setSynctime(boolean synctime)
public boolean isDontPopContent()
@DataBoundSetter public void setDontPopContent(boolean dontPopContent)
public boolean isCleanreftree()
@DataBoundSetter public void setCleanreftree(boolean cleanreftree)
public boolean isUseSnapshot()
@DataBoundSetter public void setUseSnapshot(boolean useSnapshot)
public boolean isUseReftree()
public boolean isUseWorkspace()
public boolean isNoWspaceNoReftree()
public String getDirectoryOffset()
@DataBoundSetter public void setDirectoryOffset(String directoryOffset)
public AccurevSCM.AccurevSCMDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.scm.SCM>
getDescriptor
in class hudson.scm.SCM
public void buildEnvironment(hudson.model.Run<?,?> build, Map<String,String> env)
buildEnvironment
in class hudson.scm.SCM
build
- buildenv
- enviromentspublic void checkout(@NonNull hudson.model.Run<?,?> build, @NonNull hudson.Launcher launcher, @NonNull hudson.FilePath workspace, @NonNull hudson.model.TaskListener listener, @CheckForNull File changelogFile, @CheckForNull hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
checkout
in class hudson.scm.SCM
build
- buildlauncher
- launcherworkspace
- jenkins workspacelistener
- listenerchangelogFile
- change log filebaseline
- SCMRevisionStateIOException
- on failing IOInterruptedException
- on failing interruptpublic hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser
in class hudson.scm.SCM
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling
in class hudson.scm.SCM
public ReentrantLock getOptionalLock(hudson.FilePath workspace)
null
if command
synchronization is switched off.workspace
- The workspace the command will run inpublic ReentrantLock getMandatoryLock(hudson.FilePath workspace)
workspace
- The workspace the command will run inpublic hudson.scm.SCMRevisionState calcRevisionsFromBuild(@NonNull hudson.model.Run<?,?> build, @Nullable hudson.FilePath workspace, @Nullable hudson.Launcher launcher, @NonNull hudson.model.TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class hudson.scm.SCM
IOException
InterruptedException
public hudson.scm.PollingResult compareRemoteRevisionWith(@NonNull hudson.model.Job<?,?> project, @Nullable hudson.Launcher launcher, @Nullable hudson.FilePath workspace, @NonNull hudson.model.TaskListener listener, @NonNull hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
compareRemoteRevisionWith
in class hudson.scm.SCM
IOException
InterruptedException
public boolean hasStringVariableReference(String str)
public String getPollingStream(hudson.model.Job<?,?> project, hudson.model.TaskListener listener) throws IllegalArgumentException
project
- Running buildlistener
- Listener that it runs the build onIllegalArgumentException
- Thrown when Variable reference is not supported or cannot
expandCopyright © 2016–2021. All rights reserved.