Post-Processing Scripts

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

When a step finishes, the agent performing the step will run your script. 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. See Output Log.

To create a post-processing script:

  1. Navigate to Administration > Automation.
  2. In the selection box, select Post Processing Scripts .
  3. Click the Create Script button.
  4. 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 Component Processes.
  5. Enter or paste the Javascript 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.
  6. Click Save.