david_williams | 8ac5e31 | 2006-11-14 03:29:16 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
david_williams | f2d69ee | 2009-03-12 02:38:13 +0000 | [diff] [blame] | 3 | ulimit -n 2048 |
| 4 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 5 | # remember to leave no slashes on filename in source command, |
david_williams | e529817 | 2007-12-20 03:30:54 +0000 | [diff] [blame] | 6 | # (the commonVariations.shsource file, that is) |
david_williams | e773c28 | 2006-11-14 07:48:16 +0000 | [diff] [blame] | 7 | # so that users path is used to find it (first) |
david_williams | b8f7a61 | 2008-02-19 04:29:15 +0000 | [diff] [blame] | 8 | if [ -z $BUILD_INITIALIZED ] |
david_williams | e773c28 | 2006-11-14 07:48:16 +0000 | [diff] [blame] | 9 | then |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 10 | source commonVariations.shsource |
| 11 | source ${RELENG_CONTROL}/commonComputedVariables.shsource |
david_williams | e773c28 | 2006-11-14 07:48:16 +0000 | [diff] [blame] | 12 | fi |
| 13 | |
david_williams | 044606b | 2009-01-10 08:39:21 +0000 | [diff] [blame] | 14 | echo "ulimit: " `ulimit -n` |
| 15 | |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 16 | jmxport="7000" |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 17 | webport="7777" |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 18 | rmiport="1099" |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 19 | # its ok for these to be trivial, just used to prevent |
| 20 | # accidental use, no real security needed. |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 21 | trivialUserName="wtp" |
| 22 | trivialPw="ballad" |
david_williams | 8ac5e31 | 2006-11-14 03:29:16 +0000 | [diff] [blame] | 23 | |
david_williams | 8ac5e31 | 2006-11-14 03:29:16 +0000 | [diff] [blame] | 24 | rm -fr ./workspace |
| 25 | |
david_williams | 55e1d3c | 2008-12-07 02:08:32 +0000 | [diff] [blame] | 26 | CCNAME="Webtools-" |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 27 | |
david_williams | c2f2980 | 2007-01-13 07:13:16 +0000 | [diff] [blame] | 28 | # We want to execute CC itself in Java 5 |
| 29 | export JAVA_HOME=${JAVA_5_HOME} |
| 30 | |
david_williams | 55e1d3c | 2008-12-07 02:08:32 +0000 | [diff] [blame] | 31 | export JETTY_HOME=${CCDIR} |
| 32 | |
david_williams | 44e05b4 | 2008-12-16 03:11:45 +0000 | [diff] [blame] | 33 | |
david_williams | 728e6f0 | 2009-02-04 17:56:51 +0000 | [diff] [blame] | 34 | sh ${CCDIR}/cruisecontrol.sh -configfile ${RELENG_CONTROL}/cc_config.xml -jmxport $jmxport -rmiport $rmiport -webport $webport -user $trivialUserName -password $trivialPw -cchome $CCDIR -ccname ${CCNAME} -webapppath ${CCDIR}/webapps/cruisecontrol -jettyxml ${CCDIR}/etc/jetty.xml 1>out.txt 2>err.txt & |
david_williams | 8ac5e31 | 2006-11-14 03:29:16 +0000 | [diff] [blame] | 35 | |