Back to index
Summary
Creates a new workspace.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 .workspaceDisabledBooleanoptionalTrue means this workspace is disabled. zoneNameStringoptionalThe zone name. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createWorkspace( workspaceName: "test-workspaceName" /* optional arguments */ )