Post-processing scripts

This topic describes how post-processing scripts work and how you can instruct Deployment Automation to use your own post-processing script.

Component processes in Deployment Automation perform post-processing whenever a plugin step finishes execution. Typically, post-processing scripts ensure that expected results occurred.

When configuring process steps, you can add your custom script, which you must write in JavaScript. We recommend that you wrap scripts in a CDATA element.

For details on managing steps in processes, see Create and design component processes.

When a step finishes, the agent performing the step runs your script. The agent first loads the server log file and finds the exit code property of the target step using regular expressions from the script. It then applies any actions defined in the script before processing the next step. For details, see View the output log.

To create a post-processing script:

  1. Navigate to Administration > Automation.

  2. Select the Post Processing Scripts tab.

  3. Click the Create button.

  4. In the Name field, enter the name of the script. The name must match the one you specified in the process step's properties.

  5. In the Script Body field, enter or paste the Javascript script. Point to the name of the field to view information about the properties and variables available for user-defined scripts.

  6. Click Save.

Back to top

See also: