Changes between Version 1 and Version 2 of Doc/SCDB/Server


Ignore:
Timestamp:
Apr 3, 2007, 4:57:37 PM (19 years ago)
Author:
/C=FR/O=CNRS/OU=UMR8607/CN=Michel Jouvin/emailAddress=jouvin@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/SCDB/Server

    v1 v2  
    2828This script needs to find a file [source:SCDB/tags/pro/src/hooks/quattor.build.properties quattor.build.properties] in the parent directory of SCDB local cache (generally parent directory for the script location).
    2929
    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  
     30In 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
     41If 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
     43With 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{{{
     45svn info /root/quattor/svncache
     46---> look at the current tag name, everything after /tags in the URL
     47svn update /root/quattor/svncache
     48---> Check it completes successfully
     49/root/quattor/scripts/build-tag.pl TAG-VALUE
     50}}}