copyComponent

On this page
Back to index

Summary

Creates a new component based on an existing one.
componentName
Stringrequired
The name of the component.
newComponentName
Stringrequired
The name of new component.
projectName
Stringrequired
The name for the project that must be unique among all projects.
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

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 */ )