addComponentToApplicationTier
Adds the specified component to the specified application tier.
You must specify the projectName
, applicationName
, applicationTierName
, and componentName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
applicationName |
Name of the application that must be unique among all projects. Argument Type: String |
applicationTierName |
Name of the tier that must be unique within the application. Argument Type: String |
componentName |
Name of the component. Argument Type: String |
componentProjectName |
(Optional) Name of the project that contains the component. Argument Type: String |
copyComponent
Creates a new component based on an existing one.
You must specify the projectName
, componentName
, and newComponentName
.
Arguments | Descriptions |
---|---|
projectName |
The name for the project that must be unique among all projects. Argument Type: String |
componentName |
The name of the component. Argument Type: String |
newComponentName |
The name of the new component. Argument Type: String |
applicationTierName |
(Optional) The name of the tier that must be unique within the application. Argument Type: String |
description |
(Optional) Comment text describing this object. It is not interpreted by CloudBees CD/RO . Argument Type: String |
fromApplicationName |
(Optional) The name of source application. Argument Type: String |
toApplicationName |
(Optional) The name of source application. Argument Type: String |
createComponent
Creates a new component for a project.
You must specify the projectName
and componentName
.
Arguments | Descriptions |
---|---|
projectName |
The name for the project that must be unique among all projects. Argument Type: String |
componentName |
The name of the component. Argument Type: String |
actualParameters |
(Optional) The parameters passed as arguments to the application component. Argument Type: Map |
applicationName |
(Optional) The name of the application where the component is defined. Argument Type: String |
credentialName |
(Optional) The name of the credential to attach to the component. Argument Type: String |
description |
(Optional) Comment text describing this object. It is not interpreted by CloudBees CD/RO . Argument Type: String |
pluginKey |
(Optional) The key of the plugin. Argument Type: String |
pluginName |
(Optional) The name of the plugin. Argument Type: String |
pluginParameters |
(Optional) The list of the plugin parameters. Argument Type: Map |
reference |
(Optional) < Boolean flag— If If Argument type: Boolean |
sourceApplicationName |
(Optional) The name of source application. Argument Type: String |
sourceComponentName |
(Optional) The name of new component. Argument Type: String |
sourceProjectName |
(Optional) The name of source project. Argument Type: String |
Positional arguments
projectName
, componentName
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
ec-perl
syntax: $cmdr->createComponent(<projectName>, <componentName>, {<optionals>});
Example
To create a new component:
$ec->createComponent("Default", "Cleanup DB", {pluginName => "EC-Maven"});
To create an application component by copying a master component
$ec->createComponent("Default", "Cleanup DB", {applicationName => "Deploy", sourceComponentName => "Backup DB", sourceProjectName => "Archive", reference => 0});
ectool
syntax: ectool createComponent <projectName> <componentName> [optionals]
Example
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
deleteComponent
Deletes a component.
You must specify the projectName
and componentName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
componentName |
Name of the component. Argument Type: String |
applicationName |
(Optional) Name of an application to which this component is scoped. Argument Type: String |
getComponent
Retrieves a component by name.
You must specify the projectName
and componentName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
componentName |
Name of the component. Argument Type: String |
applicationEntityRevisionId |
(Optional) The revision ID of the versioned object. Argument type: UUID |
applicationName |
(Optional) Name of an application to which this component is scoped. Argument Type: String |
reference |
(Optional) < Boolean flag— If If Argument type: Boolean |
getComponents
Retrieves all components in a project.
You must specify the projectName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
applicationEntityRevisionId |
(Optional) The revision ID of the versioned object. Argument type: UUID |
applicationName |
(Optional) Name of the application. You can search for components scoped to an application. Argument Type: String |
getComponentsinApplicationTier
Retrieves the list of components in an application tier.
You must specify the projectName
, applicationName
, and applicationTierName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
applicationName |
Name of the application that must be unique among all projects. Argument Type: String |
applicationTierName |
Name of the tier that must be unique within the application. Argument Type: String |
applicationEntityRevisionId |
(Optional) The revision ID of the versioned object. Argument type: UUID |
includeArtifactDetail |
(Optional) < Boolean flag— If set to Argument type: Boolean |
ec-perl
syntax: $cmdr->getComponentsInApplicationTier(<projectName>, <applicationName>, ` ` <applicationTierName>, {<optionals>});
ectool
syntax: ectool getComponentsInApplicationTier <projectName> <applicationName> <applicationTierName> [optionals]
Example:
ectool getComponentsInApplicationTier "Default" "Deploy snapshot" "AWS" --applicationEntityRevisionId 4fa765dd-73f1-11e3-b67e-b0a420524153
==[modifyComponent] modifyComponent
Modifies an existing component.
You must specify the projectName
and componentName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
componentName |
Name of the component. Argument Type: String |
actualParameters |
(Optional) Parameters passed as arguments to the application component. Argument Type: Map |
applicationName |
(Optional) Name of an application to which this component is scoped. Argument Type: String |
clearActualParameters |
(Optional) < Boolean flag— If this is set to Argument type: Boolean |
credentialName |
(Optional) Name of the credential to attach to this component. Argument Type: String |
description |
(Optional) Comment text describing this component. It is not interpreted by CloudBees CD/RO . Argument Type: String |
newName |
(Optional) New name of the component. Argument Type: String |
pluginKey |
(Optional) Key for the plugin. Argument Type: String |
pluginName |
(Optional) Name of the plugin. Argument Type: String |
pluginParameters |
(Optional) List of the plugin parameters Argument Type: Map |
removeComponentFromApplicationTier
Removes the specified component from an application tier.
You must specify the projectName
, applicationName
, applicationTierName
, and componentName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
applicationName |
Name of the application that must be unique among all projects. Argument Type: String |
applicationTierName |
Name of the tier that must be unique within the application. Argument Type: String |
componentName |
Name of component. Argument Type: String |
componentProjectName |
(Optional) Name of the project that contains the component. Argument Type: String |