Back to index
Summary
Creates a new component for a project.projectNameStringrequiredThe name for the project that must be unique among all projects. componentNameStringrequiredThe name of the component. actualParametersStringoptionalParameters passed as arguments to the application component. applicationNameStringoptionalThe name of an application to scope this component to. credentialNameStringoptionalThe name of a credential to attach to this component. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. pluginKeyStringoptionalThe key of the plugin. pluginNameStringoptionalThe name of the plugin. pluginParametersStringoptionalList of plugin parameters. referenceBooleanoptionalIf 1 or true , a reference of the component is created. If 0 or false , a copy of the component is created.sourceApplicationNameStringoptionalThe name of the source application. sourceComponentNameStringoptionalThe name of new component. sourceProjectNameStringoptionalThe name of source project. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createComponent( projectName: "test-projectName", componentName: "test-componentName" /* optional arguments */ )