Creating a CDA Package from Bamboo
In Bamboo, you use plans, jobs, and tasks to configure and organize the actions in the workflow. You can configure the Create CDA Package task to create a Package in CDA.
Prerequisites
- At least one project, plan, stage, and job are available in your Bamboo instance.
To Create a CDA Package from Bamboo
- Log in to Bamboo.
- Open the job where you want to create the Create CDA Package task.
- Click the Tasks tab.
- Click the Add task button at the bottom of the page. The Task types window is displayed.
- Select the Create CDA Package task.
- (Optional) Enter a description for the task.
- In the Server field, enter the URL to the CDA server. For example: http://localhost/cda
- Select if you want to provide a username and password or if you want to use shared credentials instead.
- If you want to provide a username and password, enter the username (CLIENT/USER/DEPARTMENT) and password in the corresponding fields.
- If you want to use, select them from the drop-down list. For more information, see: Adding Shared Credentials
- Enter a name for the Deployment Package to be created.
Note: This value can also contain variables (for example: Build environment variable). Variables must start with $. For example:
test-job_${bamboo.variableName}
- Enter the Deployment Package type.
- Enter the name of the Application for which the Package will be created.
- Enter the name of the Folder in which the Package will be stored.
Note: In CDA, folders are used to manage user rights.
- (Optional) Enter the owner of the Package.
Note: Owners are used for filtering entities and managing user rights, as they are stored in folders. If not provided, the user who is used to log in is assigned as owner of the package.
- (Optional) By default, all components of the application are assigned to the package. If you click Add Component, only the selected components are assigned.
- (Optional) You can specify one or more conditions for each Component, so that only the Components which comply with the conditions are added to the package. For example, you can define that a Component should be only added if a certain value exists in the build log. To do so:
- Click Add condition.
- Select the condition operation from the drop-down list and provide a value.
Notes:
- Values are case insensitive and can contain regular expressions and variables. Variables must start with $. If the value is not specified, the corresponding condition is skipped.
- A component is added into a package only if all conditions are met
- (Optional) Click Add Artifact to provide the name of the Artifact Source and Artifact that should be included in the Deployment Package. For more information, see Working with Artifacts. Also, you can provide custom fields in JSON key value pairs. For example: {"source_path":"/ftp/mysample.war"}.
- (Optional) You can specify one or more conditions for each Component, so that only the Components which comply with the conditions are added to the package. For example, you can define that a Component should be only added if a certain value exists in the build log. To do so:
- (Optional) In the Properties section, you can overwrite the custom properties of the Package. To do so, enter the type, name, and value of the properties you want to overwrite.
Note: You can set the property type as a Link or as Others.
- (Optional) In the Dynamic Properties section, you can overwrite the dynamic properties of the Package.
Notes:
- The property name must be in fully qualified name format (for example: /db/user or /user)
- The values can also contain variables (for example: Build environment variable). Variables must start with $.
- Click Save.
Note:
- When you execute the workflow in Bamboo, a new Deployment Package is created in CDA.