|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.SCM
hudson.plugins.perforce.PerforceSCM
public class PerforceSCM
Extends SCM to provide integration with Perforce SCM repositories.
| Nested Class Summary | |
|---|---|
static class |
PerforceSCM.PerforceSCMDescriptor
|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.scm.SCM |
|---|
PERMISSIONS, TAG |
| Constructor Summary | |
|---|---|
PerforceSCM(java.lang.String p4User,
java.lang.String p4Passwd,
java.lang.String p4Client,
java.lang.String p4Port,
java.lang.String projectPath,
java.lang.String projectOptions,
java.lang.String p4Exe,
java.lang.String p4SysRoot,
java.lang.String p4SysDrive,
java.lang.String p4Label,
java.lang.String p4Counter,
java.lang.String lineEndValue,
java.lang.String p4Charset,
java.lang.String p4CommandCharset,
boolean updateCounterValue,
boolean forceSync,
boolean alwaysForceSync,
boolean updateView,
boolean disableAutoSync,
boolean wipeBeforeBuild,
boolean dontUpdateClient,
boolean exposeP4Passwd,
java.lang.String slaveClientNameFormat,
int firstChange,
PerforceRepositoryBrowser browser)
|
|
| Method Summary | |
|---|---|
void |
buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
Override of SCM.buildEnvVars() in order to setup the last change we have sync'd to as a Hudson environment variable: P4_CHANGELIST |
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
java.util.List<java.lang.String> |
getAllLineEndChoices()
|
PerforceRepositoryBrowser |
getBrowser()
|
protected Depot |
getDepot(hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.AbstractProject project)
This only exists because we need to do initialization after we have been brought back to life. |
java.lang.String |
getFirstChange()
This is only for the config screen. |
int |
getLastChange(hudson.model.Run build)
|
java.lang.String |
getLineEndValue()
|
java.lang.String |
getP4Charset()
|
java.lang.String |
getP4Client()
|
java.lang.String |
getP4CommandCharset()
|
java.lang.String |
getP4Counter()
|
java.lang.String |
getP4Exe()
|
java.lang.String |
getP4Label()
|
java.lang.String |
getP4Passwd()
|
java.lang.String |
getP4Port()
|
java.lang.String |
getP4SysDrive()
|
java.lang.String |
getP4SysRoot()
|
java.lang.String |
getP4User()
|
java.lang.String |
getProjectOptions()
The current perforce option set for the view. |
java.lang.String |
getProjectPath()
|
java.lang.String |
getSlaveClientNameFormat()
|
java.lang.String |
getViewMask()
|
boolean |
isAlwaysForceSync()
|
boolean |
isDisableAutoSync()
|
boolean |
isDontRenameClient()
|
boolean |
isDontUpdateClient()
|
boolean |
isExposeP4Passwd()
|
boolean |
isForceSync()
|
boolean |
isSlaveClientNameStatic()
|
boolean |
isUpdateCounterValue()
|
boolean |
isUpdateView()
|
boolean |
isUseLabel()
|
boolean |
isUseOldClientName()
|
boolean |
isUseViewMask()
|
boolean |
isUseViewMaskForPolling()
|
boolean |
isUseViewMaskForSyncing()
|
boolean |
isWipeBeforeBuild()
|
boolean |
pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
|
static java.lang.String |
processPathName(java.lang.String path,
boolean isUnix)
|
boolean |
processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project,
hudson.FilePath workspace,
hudson.model.Node node)
With Perforce the server keeps track of files in the workspace. |
boolean |
requiresWorkspaceForPolling()
|
void |
setAlwaysForceSync(boolean force)
|
void |
setDisableAutoSync(boolean disable)
|
void |
setDontRenameClient(boolean dontRenameClient)
|
void |
setDontUpdateClient(boolean dontUpdateClient)
|
void |
setExposeP4Passwd(boolean exposeP4Passwd)
|
void |
setForceSync(boolean force)
|
void |
setLineEndValue(java.lang.String lineEndValue)
|
void |
setP4Charset(java.lang.String p4Charset)
|
void |
setP4Client(java.lang.String client)
|
void |
setP4CommandCharset(java.lang.String p4CommandCharset)
|
void |
setP4Counter(java.lang.String counter)
|
void |
setP4Exe(java.lang.String exe)
|
void |
setP4Label(java.lang.String label)
|
void |
setP4Passwd(java.lang.String passwd)
|
void |
setP4Port(java.lang.String port)
|
void |
setP4SysDrive(java.lang.String sysDrive)
|
void |
setP4SysRoot(java.lang.String sysRoot)
|
void |
setP4User(java.lang.String user)
|
void |
setProjectOptions(java.lang.String projectOptions)
Set the perforce options for view creation. |
void |
setProjectPath(java.lang.String projectPath)
|
void |
setSlaveClientNameFormat(java.lang.String clientFormat)
|
void |
setUpdateCounterValue(boolean updateCounterValue)
|
void |
setUpdateView(boolean update)
|
void |
setUseOldClientName(boolean use)
|
void |
setUseViewMask(boolean useViewMask)
|
void |
setUseViewMaskForPolling(boolean useViewMaskForPolling)
|
void |
setUseViewMaskForSyncing(boolean useViewMaskForSyncing)
|
void |
setViewMask(java.lang.String viewMask)
|
void |
setWipeBeforeBuild(boolean wipeBeforeBuild)
|
| Methods inherited from class hudson.scm.SCM |
|---|
_for, all, createEmptyChangeLog, getApi, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoots, getType, nullify, supportsPolling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@DataBoundConstructor
public PerforceSCM(java.lang.String p4User,
java.lang.String p4Passwd,
java.lang.String p4Client,
java.lang.String p4Port,
java.lang.String projectPath,
java.lang.String projectOptions,
java.lang.String p4Exe,
java.lang.String p4SysRoot,
java.lang.String p4SysDrive,
java.lang.String p4Label,
java.lang.String p4Counter,
java.lang.String lineEndValue,
java.lang.String p4Charset,
java.lang.String p4CommandCharset,
boolean updateCounterValue,
boolean forceSync,
boolean alwaysForceSync,
boolean updateView,
boolean disableAutoSync,
boolean wipeBeforeBuild,
boolean dontUpdateClient,
boolean exposeP4Passwd,
java.lang.String slaveClientNameFormat,
int firstChange,
PerforceRepositoryBrowser browser)
| Method Detail |
|---|
protected Depot getDepot(hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.AbstractProject project)
public void buildEnvVars(hudson.model.AbstractBuild build,
java.util.Map<java.lang.String,java.lang.String> env)
buildEnvVars in class hudson.scm.SCMbuild - env -
public static java.lang.String processPathName(java.lang.String path,
boolean isUnix)
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
throws java.io.IOException,
java.lang.InterruptedException
checkout in class hudson.scm.SCMjava.io.IOException
java.lang.InterruptedExceptionpublic PerforceRepositoryBrowser getBrowser()
getBrowser in class hudson.scm.SCMpublic hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser in class hudson.scm.SCM
public boolean pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
pollChanges in class hudson.scm.SCMjava.io.IOException
java.lang.InterruptedExceptionpublic int getLastChange(hudson.model.Run build)
public java.lang.String getSlaveClientNameFormat()
public java.lang.String getProjectPath()
public void setProjectPath(java.lang.String projectPath)
projectPath - the projectPath to setpublic java.lang.String getP4User()
public void setP4User(java.lang.String user)
user - the p4User to setpublic java.lang.String getP4Passwd()
public void setP4Passwd(java.lang.String passwd)
passwd - the p4Passwd to setpublic java.lang.String getP4Port()
public void setP4Port(java.lang.String port)
port - the p4Port to setpublic java.lang.String getP4Client()
public void setP4Client(java.lang.String client)
client - the p4Client to setpublic java.lang.String getP4SysDrive()
public void setP4SysDrive(java.lang.String sysDrive)
sysDrive - the p4SysDrive to setpublic java.lang.String getP4SysRoot()
public void setP4SysRoot(java.lang.String sysRoot)
sysRoot - the p4SysRoot to setpublic java.lang.String getP4Exe()
public void setP4Exe(java.lang.String exe)
exe - the p4Exe to setpublic java.lang.String getP4Label()
public void setP4Label(java.lang.String label)
label - the p4Label to setpublic java.lang.String getP4Counter()
public void setP4Counter(java.lang.String counter)
counter - the p4Counter to setpublic boolean isUpdateCounterValue()
public void setUpdateCounterValue(boolean updateCounterValue)
updateCounterValue - True if the plugin should update the counter to the last changepublic boolean isExposeP4Passwd()
public void setExposeP4Passwd(boolean exposeP4Passwd)
exposeP4Passwd - True if the P4PASSWD value must be set in the environmentpublic java.lang.String getProjectOptions()
public void setProjectOptions(java.lang.String projectOptions)
projectOptions - the effective perforce options.public void setUpdateView(boolean update)
update - True to let the plugin manage the view, false to let the user manage itpublic boolean isUpdateView()
public boolean isForceSync()
public boolean isAlwaysForceSync()
public boolean isDisableAutoSync()
public boolean isUseOldClientName()
public void setForceSync(boolean force)
force - True to perform a one time force sync, false to perform normal syncpublic void setAlwaysForceSync(boolean force)
force - True to perform a one time force sync, false to perform normal syncpublic void setDisableAutoSync(boolean disable)
disable - True to disable the pre-build sync, false to perform pre-build syncpublic void setUseOldClientName(boolean use)
use - True to use the old style client names, false to use the new stylepublic boolean isUseLabel()
public void setDontRenameClient(boolean dontRenameClient)
dontRenameClient - False if the client will rename the client spec for each
slavepublic boolean isDontRenameClient()
public boolean isWipeBeforeBuild()
public void setSlaveClientNameFormat(java.lang.String clientFormat)
clientFormat - A string defining the format of the client name for slave workspaces.public void setWipeBeforeBuild(boolean wipeBeforeBuild)
wipeBeforeBuild - True if the client is to delete the workspace files before building.public boolean isDontUpdateClient()
public void setDontUpdateClient(boolean dontUpdateClient)
public boolean isUseViewMaskForPolling()
public void setUseViewMaskForPolling(boolean useViewMaskForPolling)
public boolean isUseViewMaskForSyncing()
public void setUseViewMaskForSyncing(boolean useViewMaskForSyncing)
public java.lang.String getViewMask()
public void setViewMask(java.lang.String viewMask)
public boolean isUseViewMask()
public void setUseViewMask(boolean useViewMask)
public java.lang.String getP4Charset()
public void setP4Charset(java.lang.String p4Charset)
public java.lang.String getP4CommandCharset()
public void setP4CommandCharset(java.lang.String p4CommandCharset)
public java.lang.String getLineEndValue()
public void setLineEndValue(java.lang.String lineEndValue)
public java.util.List<java.lang.String> getAllLineEndChoices()
public java.lang.String getFirstChange()
public boolean processWorkspaceBeforeDeletion(hudson.model.AbstractProject<?,?> project,
hudson.FilePath workspace,
hudson.model.Node node)
processWorkspaceBeforeDeletion in class hudson.scm.SCMproject - The project that owns this SCM. This is always the same
object for a particular instanceof SCM. Just passed in here
so that SCM itself doesn't have to remember the value.workspace - The workspace which is about to be deleted. Never null. This can be
a remote file path.node - The node that hosts the workspace. SCM can use this information to
determine the course of action.
SCM is OK to let Hudson proceed with deleting the
workspace.
False to veto the workspace deletion.public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class hudson.scm.SCMpublic boolean isSlaveClientNameStatic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||