Class ManualWorkspaceImpl
java.lang.Object
org.jenkinsci.plugins.p4.workspace.Workspace
org.jenkinsci.plugins.p4.workspace.ManualWorkspaceImpl
- All Implemented Interfaces:
ExtensionPoint,Describable<Workspace>,Serializable,Cloneable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionManualWorkspaceImpl(String charset, boolean pinHost, String name, WorkspaceSpec spec) Deprecated.ManualWorkspaceImpl(String charset, boolean pinHost, String name, WorkspaceSpec spec, boolean cleanup) -
Method Summary
Modifier and TypeMethodDescriptionadjustViewLine(String line, String clientName, boolean adjustClientName) Support for old plugin view mappings, see JENKINS-69491.clone()getName()Returns the client workspace name as defined in the configuration.getSpec()net.sf.json.JSONObjectgetSpecJSON(String client) getType()com.perforce.p4java.client.IClientSetup/Create a Perforce workspace for this mode.voidvoidsetSpec(WorkspaceSpec spec) Methods inherited from class org.jenkinsci.plugins.p4.workspace.Workspace
addEnv, all, deepClone, getCharset, getDescriptor, getExpand, getFullName, getHostName, getRootPath, getSyncID, isCleanup, isPinHost, setExpand, setHostName, setRootPath, setSyncID
-
Constructor Details
-
ManualWorkspaceImpl
@DataBoundConstructor public ManualWorkspaceImpl(String charset, boolean pinHost, String name, WorkspaceSpec spec, boolean cleanup) -
ManualWorkspaceImpl
@Deprecated public ManualWorkspaceImpl(String charset, boolean pinHost, String name, WorkspaceSpec spec) Deprecated.
-
-
Method Details
-
getName
Description copied from class:WorkspaceReturns the client workspace name as defined in the configuration. This may include ${tag} that have not been expanded. -
setName
-
getSpec
-
setSpec
-
getType
-
clone
- Overrides:
clonein classWorkspace- Throws:
CloneNotSupportedException
-
adjustViewLine
Support for old plugin view mappings, see JENKINS-69491. Two possible actions: 1) If view has only a LHS, construct a RHS.//depot/path/to/product/...
becomes://depot/path/to/product/... //CLIENT/path/to/product/...
Note that this is different from a p4sync constructed RHS. 2) if view came from a file, substitute the clientName in the RHS. p4sync has already created the RHS correctly so don't alter.- Parameters:
line- one line of a viewclientName- client name for RHSadjustClientName- use true to fix clientName in RHS (for when RHS comes from a file)- Returns:
-
setClient
public com.perforce.p4java.client.IClient setClient(com.perforce.p4java.server.IOptionsServer connection, String user) throws Exception Description copied from class:WorkspaceSetup/Create a Perforce workspace for this mode. -
getSpecJSON
-