Post-Processing Scripts

Deployment Automation component processes perform post-processing whenever a plug-in step finishes execution. Typically, post-processing scripts ensure that expected results occurred. You can use your own JavaScript script instead by instructing Deployment Automation to use your script when you define the step. See Designing Processes.

When a step finishes, the agent performing the step will run your script, which must be written in JavaScript. When the agent runs the script, it first loads the server log file and finds the exit code property of the target step using regular expressions defined in the script. It then applies any actions defined in the script before processing the next step.

To create a script:

  1. Navigate to Automation > Post Processing Scripts.
  2. Enter a name for the script into the Name field. The name must match the name you specified when you defined the process step. See Designing Processes.
  3. Enter or paste the script into the Script Body field. See the roll-over help next to the field for information about the properties and variables available for user-defined scripts.

The Deployment Automation server log file is normally found in the following location: Deployment Automation_root\var\log\deployserver.out.