Skip to main content
Version: 3.8.x.x LTS

Pre- and post-deploy script

A script or executable may be executed on the target server, e.g., to notify third-party components such as a monitoring tool about the intended restart of a component. This script is called before and after the deployment of an instance. It is called providing three parameters:

  • The type of the instance, e.g., "nevisproxy".
  • The name of the instance.
  • The action: "start" before deploying the new configuration and "end" after the deployment.

You can enable this feature by defining the path to a script or executable installed on the server hosting nevisAdmin by the property ch.nevis.nevisadmin.deploy.notification.script (see the chapter Properties).

The script or executable should be "silent" (no output written to stdout) on success, otherwise a "notification" event will be created containing the output. The event will be an event of type "error" if the output of the script contains the string "ERROR".