Back to index
Summary
Creates a new component based on an existing one.componentNameStringrequiredThe name of the component. newComponentNameStringrequiredThe name of new component. projectNameStringrequiredThe name for the project that must be unique among all projects. applicationTierNameStringoptionalThe name of the tier. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. fromApplicationNameStringoptionalThe name of the source application. toApplicationNameStringoptionalThe name of the source application. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.copyComponent( componentName: "test-componentName", newComponentName: "test-newComponentName", projectName: "test-projectName" /* optional arguments */ )