BAA create and run deploy from component
You can use this automation script to create a BLPackage under a particular component and optionally run a deploy job in BMC Application Automation by using the BMC Release Process Management user interface.
You can choose to just create a BLPackage or create a BLPackage, and then run a deploy job immediately.
Inputs required while creating a step
When you use this automation script at the time of creating a step, you must specify the following inputs:
- source_component: Specify the component in BMC Application Automation from where you want to create a BLPackage. You can expand the tree view available to select one of the components.
- depot_folder: Specify the depot under which you want to create a BLPackage in BMC Application Automation. You can expand the tree view available to select one of the depots.
- bl_package_name: Specify a unique name to identify the BLPackage. This name is used as a display name of the BLPackage that you want to create in BMC Application Automation.
- job_folder: Specify the job folder in BMC Application Automation under which you want to create a deploy job. You can expand the tree view available to select one of the job folders under which you want to create this job.
- deploy_job_name: Specify a unique name to identify the deploy job. This name is used as the display name of the deploy job that you want to create in BMC Application Automation.
- target_mode: Specify the target mode that you want to use for running this automation script. You can select one of the following target modes:
- AlternateBAAComponents
Use if you want to run the job on a list of components that are a part of the job. The automation script will only run the job on the list of components specified. - MappedBAAComponents
Use if you want to run the job on components in BMC Release Process Management that are already mapped with component templates in BMC Application Automation. At a time, one component in BMC Release Process Management can be mapped to one component template in BMC Application Automation by using a single integration server.
For more information about this, see Mapping-components-with-component-templates.
When you select this target mode, an hierarchy of targets is generated for the components mapped. If you expand these components, you can see the servers associated with the component templates mapped in BMC Application Automation. - AlternateBAAServers
Use if you want to run the job on a list of servers that are a part of the job. The automation script will only run the job on the list of servers specified. MapFromBRPMServers
Use if you want to run the job in BMC Release Process Management on a list of servers that have the same names in BMC Application Automation. To specify the servers on which you want to run the job, navigate to a parallel tab called Server Properties and select the target servers associated with that component.- targets: When you select one of the target modes, an hierarchy of targets related to that target mode is generated. You can expand the tree view available to select one or more of the targets on which you want to run the job.
- execute_immediately: You can specify whether you want to run the deploy job immediately on creation or not. By default, the job is run immediately on creation. You can select one of the following options:
- Yes: (Default) If you select this option, the job is run immediately on creation.
- No: If you select this option, the job is only created.
Expected results on running this automation script
When you specify the preceding inputs and actually run the script, you can expect the following results:
- Overall status for the job run, whether it is completed successfully, completed with errors, completed with warnings, or failed.
- Status for each target selected for the job run, whether it had errors, had warnings, the exit code and whether the target specified needs a reboot.
- Detailed log for the job run.
Associated data retriever scripts
The BAA create and run deploy from component automation script uses the following data retriever scripts:
Data retriever scripts
Data retriever script | Description |
---|---|
BAA components | This script is used for retrieving data about components from BMC Application Automation and display a tree view of the same in BMC Release Process Management. |
BAA depot folders | This script is used for retrieving data about depot folders from BMC Application Automation and display a tree view of the same in BMC Release Process Management. |
BAA job folders | This script is used for retrieving data about job folders from BMC Application Automation and display a tree view of the same in BMC Release Process Management.
|
BAA job targets | This script is used for retrieving data about targets (server or components) from BMC Application Automation and display a tree view of the same in BMC Release Process Management.
|