Promotion

Promotion is the process of moving Control-M folder and job definitions from one environment to another, such as from a development environment to a production environment. During promotion, environment-specific values (such as Control-M/Server names, host groups, and connection profiles) are remapped according to rules that you define, so that folder and job definitions validated in the source environment can run in the target environment.

In previous versions of Control-M, the WCM add-on enabled you to define Promotion Rules in the Control-M client. Promotion is not yet available in Control-M Web. BMC recommends that you use Automation API to apply a Deploy Descriptor with rules for folder and job promotion and workflow transformation. You can use APIs to obtain a list of existing WCM Promotion Rules and convert them to JSON-format Deploy Descriptors.

For an example of a promotion process that uses API commands, see Promoting a Folder from DEV to PROD. This example involves the following steps:

  1. Select source: Export folder definitions from the source environment by running the deploy jobs::get API command.

  2. Apply Promotion Rule: Do one of the following:

    • Convert an existing Promotion Rule to a Deploy Descriptor:

      • Retrieve a list of existing Promotion Rules from Control-M/EM by running the deploy promotionrules:get API command and identify the Promotion Rule that you want to use.

      • Convert the Promotion Rule to a Deploy Descriptor by running the deploy promotionrules:rule::get API command.

    • Author a new JSON-format Deploy Descriptor, as described in Deploy Descriptor.

  3. Transform: Apply the Deploy Descriptor and transform the source definitions for the target environment by running the deploy transform API command.

  4. Validate: Validate the new folder definitions against the target environment by running the build API command.

  5. Deploy: Deploy folder definitions to the target environment by running the deploy API command.

A BMC-provided script, available from the Control-M GitHub, enables you to automate the Promotion process, as described in Running a Folder Promotion Script.