30 | | In addition, it is possible to customize this script by adding a file `/etc/build-tag.conf`. This file must contain key/value pairs (with spaces or tabs between key and value). Supported configuration options are : |
31 | | |
| 30 | In addition, it is possible to customize this script by adding a file `/etc/build-tag.conf`. This file must contain key/value pairs (with spaces or tabs between key and value, keys are not case sensitive). Supported configuration options are : |
| 31 | |
| 32 | * `debug` : display additional information if non zero. |
| 33 | * `java_home` : path of Java virtual machine. |
| 34 | * `java_version` : alternative to `java_home`. Must match a directory under `/usr/java`. Default : $JAVA_HOME if defined. |
| 35 | * `svn_cache` : location to use for SCDB repository local cache. Default : `svncache` at same level as the directory where the script is installed. |
| 36 | * `use_svn` : if non zero, force the use of `svn` command even if `jsvn` exists. Default : use `jsvn` from `svn_cache` if it is present. ''Note : using `jsvn` may affect performances.'' |
| 37 | |
| 38 | |
| 39 | == Troubleshooting Server-side Scripts == |
| 40 | |
| 41 | If there is a problem with deployment after entering command `ant deploy`, people listed in `NOTIFY` variable of hook scripts should receive an email describing the problem. Note than `ant deploy` reports a success even if something wrong happens during deployment : `ant` success or failure only reflects Subversion commit (implied by `ant deploy`) status. |
| 42 | |
| 43 | With some misconfiguration, it can happen you don't receive an email about the deployment failure. Or you may want to troubleshoot the problem. To achieve this, it is possible to execute manually the deployment script, `build-tag.pl`. For this you must proceed as follow (assuming your SCDB local cache is in `/root/quattor/svncache` and `build-tag.pl` is installed in `/root/quattor/scripts`) : |
| 44 | {{{ |
| 45 | svn info /root/quattor/svncache |
| 46 | ---> look at the current tag name, everything after /tags in the URL |
| 47 | svn update /root/quattor/svncache |
| 48 | ---> Check it completes successfully |
| 49 | /root/quattor/scripts/build-tag.pl TAG-VALUE |
| 50 | }}} |