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:
The IBM UrbanCode Deploy server log file is normally found in the following location: udeploy_root\var\log\deployserver.out.