RLM deploy package instance by component version
You can use this automation script to deploy the specified package instance from BMC Release Package and Deployment (RPD) by using BMC Release Process Management (RPM).
For this script to work, you must create an analyzer with the RPM Version Tag module, add it to the required package, and create an instance of this package in RPD. When a package instance is created (for example, by Jenkins), a corresponding component version tag is generated in RPM and you can use it to create a release in the BMC Release Lifecycle Management Requester UI (now called Release Process Management - Requester UI, 5.0.03.001 onward) and deploy the required package to the existing environments in the release.
The component version tag created by RPD has higher priority than the version tags that are specified at the application or request template level in RPM.
Inputs required while creating a step
To use this automation script in a step, the following inputs from RPD are required:
- Package: Select in a list of packages present in the database of RPD. You must select that package whose associated instance you want to deploy.
Route: Select in a list of routes present in the database of RPD. The list of routes is displayed depending on the instance you select.
Environment: A list of environments is populated when you select a route. You can select the route in a list of environments associated with the selected route.
Channels: Select the channel for the deployment in the list. A list of channels is populated when you select an environment.
Log Format: Select the format of the logs returned by the deploy operation from RPD.
Set Properties: This item is displayed only when you select an instance. The table displayed provides a list of properties that are associated with the selected instance on RPD. You can select one of these properties and override its value with a property value in RPM. For this, you must first create a mapping of properties in RPM with that on RPD. For more information, see Setting-property-values-for-a-package-repository-or-instance.
Expected results after running this automation script
After you run this script, you can expect to see the following results on the Automation tab if the step:
- Deployment Log File: Contains log details about the package instance deployment. This file contains log details that are originally generated in RPD. You can download the file from RPM.
- Deployment Log URL: Provides a URL that takes you to the location where the deployment log file is available in RPD.
Associated data retriever scripts
The RLM deploy package instance by name automation script uses the following data retriever scripts:
Data retriever script | Description |
---|---|
RLM packages | This script is used for retrieving packages that already exist in the RPD database. The data retrieved by this script is displayed as a list when you add a step in RPM. |
RLM routes | This script is used for retrieving data about routes that already exist in the RPD database. The data retrieved by this script is displayed as a list when you add a step in RPM. |
RLM route environments with next | This script is used for retrieving data about environments associated with the selected route. If a step does not contain inherited environments, the script also provides the Next option in the Environment list of the Automation tab in the step, which you can select to promote to the next environment in the route. The data retrieved by this script is displayed as a list when you add a step in RPM. |
RLM environment channels | This script is used for retrieving data about channels associated with the selected environment from the RPD database. The data retrieved by this script is displayed as a list when you add a step in RPM. Note: In automation scripts, channels for RPD are available only if you integrate with RPD 4.3.01.09 or later. |
RLM package properties | This script is used for retrieving data about properties associated with the selected package from the RPD database. The data retrieved by this script is displayed as a table of properties with corresponding values. |