blob: 9e841094923e14f0c67405893a81a8f5fb806856 [file] [log] [blame]
david_williams51256372010-04-20 21:04:25 +00001#!/usr/bin/env bash
david_williams8ac5e312006-11-14 03:29:16 +00002
david_williamsf2d69ee2009-03-12 02:38:13 +00003ulimit -n 2048
4
david_williams673ba392008-01-02 17:41:13 +00005# remember to leave no slashes on filename in source command,
david_williamse5298172007-12-20 03:30:54 +00006# (the commonVariations.shsource file, that is)
david_williamse773c282006-11-14 07:48:16 +00007# so that users path is used to find it (first)
david_williamsb8f7a612008-02-19 04:29:15 +00008if [ -z $BUILD_INITIALIZED ]
david_williamse773c282006-11-14 07:48:16 +00009then
david_williams673ba392008-01-02 17:41:13 +000010 source commonVariations.shsource
11 source ${RELENG_CONTROL}/commonComputedVariables.shsource
david_williamse773c282006-11-14 07:48:16 +000012fi
13
david_williamsc5ea3dd2010-08-07 13:42:09 +000014XVFBSCREEN=${BUILD_HOME}/tmp
15mkdir -p ${XVFBSCREEN}
16/usr/bin/Xvfb :$DISPLAYNUMBER -screen 0 1600x1200x24 -reset -fbdir ${XVFBSCREEN} &
david_williams6065fc22010-08-04 01:18:23 +000017
david_williams044606b2009-01-10 08:39:21 +000018echo "ulimit: " `ulimit -n`
19
david_williams2e0afe02008-01-02 04:11:40 +000020jmxport="7000"
david_williams42f9b242006-11-27 18:45:14 +000021webport="7777"
david_williams2e0afe02008-01-02 04:11:40 +000022rmiport="1099"
david_williams673ba392008-01-02 17:41:13 +000023# its ok for these to be trivial, just used to prevent
24# accidental use, no real security needed.
david_williams42f9b242006-11-27 18:45:14 +000025trivialUserName="wtp"
26trivialPw="ballad"
david_williams8ac5e312006-11-14 03:29:16 +000027
david_williams8ac5e312006-11-14 03:29:16 +000028rm -fr ./workspace
29
david_williams55e1d3c2008-12-07 02:08:32 +000030CCNAME="Webtools-"
david_williams42f9b242006-11-27 18:45:14 +000031
david_williamsc2f29802007-01-13 07:13:16 +000032# We want to execute CC itself in Java 5
33export JAVA_HOME=${JAVA_5_HOME}
34
david_williams55e1d3c2008-12-07 02:08:32 +000035export JETTY_HOME=${CCDIR}
36
david_williams44e05b42008-12-16 03:11:45 +000037
david_williams728e6f02009-02-04 17:56:51 +000038sh ${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 +000039
david_williams6065fc22010-08-04 01:18:23 +000040
41echo
42echo " Project Home: ${PROJECT_HOME}"
43echo " Build Home: ${BUILD_HOME}"
44echo " DISPLAY: ${DISPLAY}"
45echo
46echo " JAVA_4_HOME: ${JAVA_4_HOME}"
47echo
48echo " JAVA_5_HOME: ${JAVA_5_HOME}"
49echo
50echo " JAVA_6_HOME: ${JAVA_6_HOME}"
51echo
52echo " ANT_HOME: ${ANT_HOME}"
53echo
54echo " PATH: ${PATH}"
55echo
56echo " BASEOS: ${BASEOS}"
57echo " BASEWS: ${BASEWS}"
58echo " BASEARCH: ${BASEARCH}"
59echo
60echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
61echo
62echo " remember to check that X virtual frame buffer is running for headless JUnit testing";
63ps -ef | grep Xvfb
64echo