Manage post-processing scripts

This topic explains how Deployment Automation handles post-processing in component processes. You can create and use your own post-processing scripts.

Guidelines for post-processing scripts

Component processes perform post-processing whenever a plugin step finishes running. Typically, post-processing scripts help ensure that expected results occurred.

When configuring a process step, you can use your custom script created in JavaScript.

When a process step finishes, the agent performing the step runs your script:

  1. The agent loads the server log file and finds the exit code property of the target step using regular expressions from the script. For details, see View the output log.

  2. Before processing the next step, the agent applies any actions defined in the script.

Recommendations for creating a post-processing script:

For examples of scripts, see Post-processing script examples.

For details about component processes, see Create and design component processes.

Back to top

Create a post-processing script

To add a post-processing script, you need a Web UI role with the Settings permission. Administrators have this permission by default.

For details about Web UI roles, see Web UI roles and UI security.

To create a post-processing script:

  1. In Deployment Automation, go to Administration > Automation.

  2. Select the Post Processing Scripts tab.

  3. Click Create.

  4. Specify the post-processing script details:

    Field Description
    Name Enter the name of the script. The name must match the one you specified in the process step's properties.
    Script Body

    Enter or paste your script.

    Tip: To view information about the properties and variables available for user-defined scripts, hover over the field name.

  5. Click Save.

Note: Alternatively, you can create a post-processing script in the process designer when you set the properties for a plugin step.

Back to top

Post-processing script examples

Use these examples of post-processing scripts to create your own scripts.

Back to top

See also: