Post-processing scripts

IBM® UrbanCode Deploy component processes run post-processing after a plug-in step finishes. Typically, post-processing scripts ensure that expected results occurred.

You can use your own JavaScript script instead by instructing IBM UrbanCode Deploy to use your script when you define the step. See Process editor.

When a step finishes, the agent that is running the step runs your script (the script must be written in JavaScript). When the agent runs the script, it first loads the server log file. It finds the exit code property of the target step with regular expressions that are defined in the script. It then applies any actions that are defined in the script before it runs the next step.

To create a script:

  1. Display the Edit Script dialog (Settings > Post Processing Scripts).
    Figure 1. Edit Script dialog
  2. Enter a name for the script into the Name field. The name must match the name that you specified when you defined the process step. See Process editor.
  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 IBM UrbanCode Deploy server log file is normally found in the following location: udeploy_root\var\log\deployserver.out.


Feedback