Summary
Modifies an existing workspace.A workspace definition consists of three paths to access the workspace in various ways:
-
agentDrivePath
-
agentUncPath
: The agent usesagentUncPath
andagentDrivePath
to compute the drive mapping needed to makeagentDrivePath
valid in the step. Refer to the examples below. -
agentUnixPath
Examples for agentDrivePath
and agentUncPath
:
agentDrivePath | agentUncPath | Result from running a step in "job123" that uses this workspace |
---|---|---|
|
|
The agent maps |
|
|
The agent maps |
|
|
Invalid! No mapping can be deduced from this pair of values. |
|
|
A local workspace on the agent. No drive mapping is needed. The job step runs in |
|
The same as if |
workspaceNameStringrequiredThe workspace name. agentDrivePathStringoptionalPathname to the root directory of a workspace, for use on Windows, specified with a drive letter. agentUncPathStringoptionalPathname to the root directory of a workspace, for use on Windows, specified with a UNC path. agentUnixPathStringoptionalPathname to the root directory of a workspace, for use on UNIX. credentialNameStringoptionalThe name of the impersonation credential to attach to this workspace. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. localBooleanoptionalTrue if the workspace is local .newNameStringoptionalThe new name for an existing object that is being renamed. workspaceDisabledBooleanoptionalTrue means this workspace is disabled. zoneNameStringoptionalThe zone name. |
Usage
Perl
$cmdr->modifyWorkspace( "test-workspaceName" # workspaceName # optionals );
ectool
ectool modifyWorkspace \ "test-workspaceName" `# workspaceName` \ # optionals