copyComponent

Back to index

Summary

Creates a new component based on an existing one.
projectName
Stringrequired
The name for the project that must be unique among all projects.
componentName
Stringrequired
The name of the component.
newComponentName
Stringrequired
The name of new component.
applicationTierName
Stringoptional
The name of the tier.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
fromApplicationName
Stringoptional
The name of the source application.
toApplicationName
Stringoptional
The name of the source application.

Usage

Perl

$cmdr->copyComponent( "test-projectName", # projectName "test-componentName", # componentName "test-newComponentName" # newComponentName # optionals );

ectool

ectool copyComponent \ "test-projectName" `# projectName` \ "test-componentName" `# componentName` \ "test-newComponentName" `# newComponentName` \ # optionals

Examples

Perl

$cmdr->copyComponent("Default", "WAR file", "New WAR file", {applicationTierName => "Web Server Config"});

ectool

ectool copyComponent "Default" "WAR file" "New WAR file" --applicationTierName "Web Server Config"