Summary
Clone a CloudBees CD/RO entity.
|
applicationNameStringoptionalThe name of the application container of the property sheet that owns the property. applicationTierNameStringoptionalThe name of the application tier container of the property sheet that owns the property. archiveConnectorNameStringoptionalThe name of the archive connector of the property sheet that owns the property. artifactNameStringoptionalThe name of the artifact container of the property sheet that owns the property. artifactVersionNameStringoptionalThe name of the artifactVersion container of the property sheet that owns the property. catalogItemNameStringoptionalThe Catalog Item name. catalogItemRunIdStringoptionalThe primary key of the CatalogItemRun container of the property sheet that owns the property. catalogNameStringoptionalThe name of the catalog of the property sheet that owns the property. ciBuildDetailNameStringoptionalThe name of the CI build detail of the property sheet that owns the property. cloneNameStringoptionalNew name to use for a cloned copy of an object. cloneTaskGroupStringoptionalThe name of the group of task. clusterNameStringoptionalThe name of the cluster which owns property sheet. componentNameStringoptionalThe name of the component container of the property sheet that owns the property. configNameStringoptionalThe name of the emailConfig container that owns the property. credentialNameStringoptionalThe name of the credential container of the property sheet that owns the property. credentialProviderNameStringoptionalThe credential provider name. dashboardNameStringoptionalThe name of the dashboard of the property sheet that owns the property. dataRetentionPolicyNameStringoptionalThe name of the data retention policy of the property sheet that owns the property. disableProjectTrackingBooleanoptionalIf set to true, when copying a project, even if the original project has change tracking enabled, make change tracking of the new copy of the project be disabled from its creation. If you don't need to track changes to the new copy, this avoids the change tracking overhead that would otherwise slow down the copying operation, and also saves having to subsequently disable change tracking of the new copy of the project. environmentNameStringoptionalThe name of the environment container of the property sheet that owns the property. environmentTemplateNameStringoptionalThe name of the environment template container of the property sheet that owns the property. environmentTemplateTierNameStringoptionalThe name of the environment template tier container of the property sheet that owns the property. environmentTierNameStringoptionalThe name of the environment tier container of the property sheet that owns the property. flowNameStringoptionalThe name of the flow container of the property sheet that owns the property. flowRuntimeIdStringoptionalThe primary key or name of the flowRuntime container of the property sheet that owns the property. flowRuntimeNameStringoptionalThe name of the flow runtime container of the property sheet that owns the property. flowRuntimeStateIdStringoptionalThe primary key or name of the flowRuntimeState container of the property sheet that owns the property. flowRuntimeStateNameStringoptionalThe name of the flow state container of the property sheet that owns the property. flowStateNameStringoptionalThe name of the flow state container of the property sheet that owns the property. flowTransitionNameStringoptionalThe name of the flow transition container of the property sheet that owns the property. gateTypeStringoptionalThe type of the gate which owns property sheet. Possible values: "POST" , "PRE" gatewayNameStringoptionalThe name of the gateway container of the property sheet. groupNameStringoptionalThe name of the group container of the property sheet that owns the property. jobIdStringoptionalThe primary key or name of the job container of the property sheet that owns the property. jobStepIdUUIDoptionalThe primary key of the job-step container of the property sheet that owns the property. linkNewPersonaBooleanoptionalSet to 1 to associate users and groups to the cloned persona. microserviceNameStringoptionalThe name of the microservice container of the property sheet. notifierNameStringoptionalThe name of the notifier container of the property sheet that owns the property. objectIdStringoptionalThe object ID as returned by FindObjects. pathStringoptionalProperty path string. personaNameStringoptionalThe persona name. pipelineNameStringoptionalThe name of the pipeline container of the property sheet that owns the property. pluginConfigurationNameStringoptionalThe plugin configuration name. pluginNameStringoptionalThe name of the plugin container of the property sheet that owns the property. procedureNameStringoptionalThe name of the procedure container of the property sheet that owns the property. processNameStringoptionalThe name of the process, if the container is a process or process step. processStepNameStringoptionalThe name of the process step, if the container is a process step. projectNameStringoptionalThe name of the project container of the property sheet that owns the property. propertySheetIdUUIDoptionalThe primary key of the property sheet that owns the property. providerNameStringoptionalThe unique name of the directory provider. reducedDetailChangeHistoryBooleanoptionalSet to 0 or false to prevent copying of a large project that has change tracking enabled from automatically reducing the level of detail that it tracks for the change history of the copy -- this will make the copy operation take longer and put more load on the database, but will allow the Change History feature to still show the full detail of entities owned by the copy of the project that were created by the copy operation. releaseNameStringoptionalThe name of the release container of the property sheet that owns the property. reportNameStringoptionalThe name of the report of the property sheet that owns the property. reportObjectTypeNameStringoptionalThe name of the report object type of the property sheet that owns the property. repositoryNameStringoptionalThe name of the repository container of the property sheet that owns the property. resourceNameStringoptionalThe name of the resource container of the property sheet that owns the property. resourcePoolNameStringoptionalThe name of the resource pool container of the property sheet that owns the property. resourceTemplateNameStringoptionalThe name of the resource template container of the property sheet that owns the property. scheduleNameStringoptionalThe name of the schedule container of the property sheet. scmSyncNameStringoptionalThe name of the SCM Sync container of the property sheet that owns the property. searchFilterNameStringoptionalThe name of the search filter container of the property sheet. serviceAccountNameStringoptionalRetrieves the name of the service account container of the property sheet. snapshotNameStringoptionalThe name of the snapshot container of the property sheet that owns the property. stageNameStringoptionalThe name of the stage container of the property sheet that owns the property. stateDefinitionNameStringoptionalThe name of the state definition container of the property sheet that owns the property. stateNameStringoptionalThe name of the state container of the property sheet that owns the property. stepNameStringoptionalThe name of the step container of the property sheet that owns the property. systemObjectNameStringoptionalThe system object. Possible values: "admin" , "analyticsServerConfigurations" , "archiveConnectors" , "artifacts" , "ciConfigurations" , "ciEventsSchemaConfiguration" , "ciJobDetails" , "ciLoginHistory" , "complianceConfiguration" , "dataRetentionPolicies" , "devOpsForesight" , "devOpsInsightServerConfigurations" , "directory" , "dslClientFiles" , "emailConfigs" , "forceAbort" , "licensing" , "log" , "personaCategories" , "personaPages" , "personas" , "plugins" , "priority" , "projects" , "reportObjectTypes" , "repositories" , "resources" , "searchFilters" , "server" , "session" , "ssoConfiguration" , "ssoLoginHistory" , "statsdConfiguration" , "tags" , "test" , "workspaces" , "zonesAndGateways" taskNameStringoptionalThe name of the task which owns property sheet. transitionDefinitionNameStringoptionalThe name of the transition definition container of the property sheet that owns the property. transitionNameStringoptionalThe name of the transition container of the property sheet that owns the property. triggerNameStringoptionalThe name of the trigger which owns property sheet. unlinkOriginalPersonaBooleanoptionalSet to 1 to disassociate users and groups from the original or the persona being cloned. userNameStringoptionalThe name of the user container of the property sheet that owns the property. widgetNameStringoptionalThe name of the widget of the property sheet that owns the property. workflowDefinitionNameStringoptionalThe name of the workflow definition container of the property sheet that owns the property. workflowNameStringoptionalThe name of the workflow container of the property sheet that owns the property. workspaceNameStringoptionalThe name of the workspace container of the property sheet. zoneNameStringoptionalThe name of the zone container of the property sheet. |
Usage
Perl
$cmdr->clone( # optionals );
ectool
ectool clone \ # optionals
Examples
Perl
To create a copy of a procedure, as though you selected Copy in the UI:
$xPath = $cmdr->clone( { projectName => "EC-Examples", procedureName => "set Property" } );
To create a copy of a procedure and provide a name for the procedure:
$xPath = $cmdr->clone( { projectName => "EC-Examples", procedureName => "set Property", cloneName => "set Property 2" } );
To create a copy of a procedure step:
$xPath = $cmdr->clone( { projectName => "EC-Examples", procedureName => "set Property", cloneName => "set Property 2", stepName => 'setProperty' } );
To copy a step using the full path:
$xPath = $cmdr->clone( { path => '/projects/EC-Examples/procedures/set Property/steps/setProperty' } );
ectool
To create a copy of a procedure, as though you selected Copy in the UI:
ectool clone --projectName 'EC-Examples' --procedureName 'set Property' <response requestId="1" nodeId="192.168.16.238"> <cloneName>Set Property copy</cloneName></response>
To create a copy of a procedure and provide a name for the procedure:
ectool clone --projectName 'EC-Examples' --procedureName 'set Property' --cloneName 'set Property 2' <response requestId="1" nodeId="192.168.16.238"> <cloneName>set Property 2</cloneName></response>
To create a copy of a procedure step:
ectool clone --projectName 'EC-Examples' --procedureName 'set Property' --stepName 'setProperty' <response requestId="1" nodeId="192.168.16.238"> <cloneName>setProperty copy</cloneName></response>
To copy a step using the full path:
ectool clone --path '/projects/EC-Examples/procedures/set Property/steps/setProperty' <response requestId="1" nodeId="192.168.16.238"> <cloneName>setProperty copy</cloneName></response>
To copy a release from a project named test
, and name the new release testrelease copy
:
ectool clone --projectName test --releaseName testrelease
To copy a release named testrelease
from a project named test
, give it a new release name of testrelease2
, and save it in the test2
project:
ectool clone --projectName test --releaseName testrelease --cloneName /projects/test2/releases/testrelease2
-
The use of the full path in the
cloneName
argument makes it possible to clone to a different project.cloneName
is exclusively related to the new object. -
The
path
argument specifies the location of the source object; it does not apply to the new object being created.