blob: b72eca9afb0d368d6a895937eb8fdc2bef27e57b [file] [log] [blame]
david_williams8ac5e312006-11-14 03:29:16 +00001#!/bin/sh
2
david_williams673ba392008-01-02 17:41:13 +00003# remember to leave no slashes on filename in source command,
david_williamse5298172007-12-20 03:30:54 +00004# (the commonVariations.shsource file, that is)
david_williamse773c282006-11-14 07:48:16 +00005# so that users path is used to find it (first)
david_williamsb8f7a612008-02-19 04:29:15 +00006if [ -z $BUILD_INITIALIZED ]
david_williamse773c282006-11-14 07:48:16 +00007then
david_williams673ba392008-01-02 17:41:13 +00008 source commonVariations.shsource
9 source ${RELENG_CONTROL}/commonComputedVariables.shsource
david_williamse773c282006-11-14 07:48:16 +000010fi
11
david_williams044606b2009-01-10 08:39:21 +000012echo "ulimit: " `ulimit -n`
13
david_williams2e0afe02008-01-02 04:11:40 +000014jmxport="7000"
david_williams42f9b242006-11-27 18:45:14 +000015webport="7777"
david_williams2e0afe02008-01-02 04:11:40 +000016rmiport="1099"
david_williams673ba392008-01-02 17:41:13 +000017# its ok for these to be trivial, just used to prevent
18# accidental use, no real security needed.
david_williams42f9b242006-11-27 18:45:14 +000019trivialUserName="wtp"
20trivialPw="ballad"
david_williams8ac5e312006-11-14 03:29:16 +000021
david_williams8ac5e312006-11-14 03:29:16 +000022rm -fr ./workspace
23
david_williams55e1d3c2008-12-07 02:08:32 +000024CCNAME="Webtools-"
david_williams42f9b242006-11-27 18:45:14 +000025
david_williamsc2f29802007-01-13 07:13:16 +000026# We want to execute CC itself in Java 5
27export JAVA_HOME=${JAVA_5_HOME}
28
david_williams55e1d3c2008-12-07 02:08:32 +000029export JETTY_HOME=${CCDIR}
30
david_williams44e05b42008-12-16 03:11:45 +000031
david_williams728e6f02009-02-04 17:56:51 +000032sh ${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_williams8ac5e312006-11-14 03:29:16 +000033