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. actualParameterArrayoptionalParameters 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. pluginParameterArrayoptionalList 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
Perl
$cmdr->createComponent( "test-projectName", # projectName "test-componentName" # componentName # optionals );
ectool
ectool createComponent \ "test-projectName" `# projectName` \ "test-componentName" `# componentName` \ # optionals
Examples
Usage guidelines
-
To create a new component, use
pluginKey
orpluginName
.ectool example:
--pluginKey
or--pluginName
-
To create an application component by copying a master component, use
applicationName
,sourceComponentName
,sourceProjectName
, andreference
=0
.ectool example:
--applicationName, --sourceComponentName, --sourceProjectName, --reference 0
-
To create a master component by copying another master component, use
sourceComponentName
,sourceProjectName
,andreference
=0
.ectool example:
--sourceComponentName, --sourceProjectName, --reference 0
-
To create an application component by copying another application component, use
applicationName
,sourceComponentName
,sourceApplicationName
,sourceProjectName
, andreference
=0
.ectool example:
--applicationName, --sourceComponentName, --sourceApplicationName, --sourceProjectName, --reference 0
-
To create a master component from an application component, use
sourceComponentName,
sourceApplicationName
,sourceProjectName
, andreference
=0
.ectool example:
--sourceComponentName, --sourceApplicationName, --sourceProjectName, --reference 0
-
To create a reference of the master component, use
applicationName
,sourceComponentName
,sourceProjectName
, andreference
=1
.ectool example:
--applicationName, --sourceComponentName, --sourceProjectName, --reference 1
Perl
To create a new component:
$cmdr->createComponent("Default", "Cleanup DB", {pluginName => "EC-Maven"});
To create an application component by copying a master component:
$cmdr->createComponent("Default", "Cleanup DB", {applicationName => "Deploy", sourceComponentName => "Backup DB", sourceProjectName => "Archive", reference => 0});
ectool
To create a new component:
ectool createComponent "Default" "Cleanup DB" --pluginName "EC-Maven"
To create an application component by copying a master component:
ectool createComponent "Default" "Cleanup DB" --applicationName "Deploy" --sourceComponentName "Backup DB" --sourceProjectName "Archive" --reference 0