Creating automation scripts
For every action that you want to perform in an external system (target) by using BMC Release Process Management, you must create an automation script. Once you have your automation scripts ready, you can use them in various steps of a request and then run the request.
To create an automation script
- Click the Environment tab and then click Automation.
- Click Create Automation on the right side of your screen.
- Select Automation in the To use as list.
- In the Choose Automation Categorylist, select one of the following options as appropriate:
- BMC Application Automation 8.2: Select this option to create a new script for performing functions in version 8.2.00 of BMC Application Automation.
- BMC Remedy 7.6.x: Select this option to create a new script for performing functions in version 7.6.04 SP2 of BMC Remedy IT Service Management Suite.
- General: Select this option to create a new script for performing general functions like executing a command on your local or remote computer.
- Hudson / Jenkins: Select this option to create a new script for performing functions in the Hudson tool.
- RLM Deployment Engine: Select this option to create a new script for performing functions in version 4.3.00 of BMC VaraLogix Q Deployment Automation.
- You can also create a new category for integrating with other external systems and select that category for creating anew script. For more information, see Managing-automation-categories.
In the Apply templatelist, select an option that you want to use as a base for creating your script.
In the Script integration serverlist, select that integration server which you want to use for connecting with the external system.When you select an option in this list, the details related to that integration server are automatically added in the script body.
- In the Script Name box, specify a unique name to identify the script.
- In the Description box, specify a short description regarding the purpose for which you are creating the script.
- In the Script body area, specify the Ruby script that is run when you use the script in a step and run the request. The script body is the core of an automation script. The action that you want to perform and how you want to execute it depends on how you design the arguments and the logic in the script body. For more information about designing the script body, see Designing-the-script-body-of-an-automation-script.
- In the Script typelist, select one of the following options as appropriate:
- Template: Select this option if you want to save this script as a template for future use.
- System: Select this option if you want to save this script as a base script that can be only viewed or copied but not modified by anyone apart from the Administrator.
- User: Select this option if you want to save this script as a normal script for your personal use and available for viewing, copying, and modifying.
- Click Add script to save the script or click the cancel link to exit without saving any changes.
Related topics
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*