blob: 8a0c3b80be85250c7da958c687d0b9d8ae9efc5b [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
david_williams0d3f08d2010-08-19 04:49:50 +00004echo "ulimit: " `ulimit -n`
david_williamsf2d69ee2009-03-12 02:38:13 +00005
david_williams673ba392008-01-02 17:41:13 +00006# remember to leave no slashes on filename in source command,
david_williamse5298172007-12-20 03:30:54 +00007# (the commonVariations.shsource file, that is)
david_williamse773c282006-11-14 07:48:16 +00008# so that users path is used to find it (first)
david_williamsb8f7a612008-02-19 04:29:15 +00009if [ -z $BUILD_INITIALIZED ]
david_williamse773c282006-11-14 07:48:16 +000010then
david_williams673ba392008-01-02 17:41:13 +000011 source commonVariations.shsource
12 source ${RELENG_CONTROL}/commonComputedVariables.shsource
david_williamse773c282006-11-14 07:48:16 +000013fi
14
david_williams0d3f08d2010-08-19 04:49:50 +000015${RELENG_CONTROL}/xvfb-start.sh
david_williams044606b2009-01-10 08:39:21 +000016
david_williams2e0afe02008-01-02 04:11:40 +000017jmxport="7000"
david_williams42f9b242006-11-27 18:45:14 +000018webport="7777"
david_williams2e0afe02008-01-02 04:11:40 +000019rmiport="1099"
david_williams673ba392008-01-02 17:41:13 +000020# its ok for these to be trivial, just used to prevent
21# accidental use, no real security needed.
david_williams42f9b242006-11-27 18:45:14 +000022trivialUserName="wtp"
23trivialPw="ballad"
david_williams8ac5e312006-11-14 03:29:16 +000024
david_williams8ac5e312006-11-14 03:29:16 +000025rm -fr ./workspace
26
david_williams55e1d3c2008-12-07 02:08:32 +000027CCNAME="Webtools-"
david_williams42f9b242006-11-27 18:45:14 +000028
david_williamsc2f29802007-01-13 07:13:16 +000029# We want to execute CC itself in Java 5
30export JAVA_HOME=${JAVA_5_HOME}
31
david_williams55e1d3c2008-12-07 02:08:32 +000032export JETTY_HOME=${CCDIR}
33
david_williams44e05b42008-12-16 03:11:45 +000034
david_williams728e6f02009-02-04 17:56:51 +000035sh ${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 +000036
david_williams6065fc22010-08-04 01:18:23 +000037
38echo
39echo " Project Home: ${PROJECT_HOME}"
40echo " Build Home: ${BUILD_HOME}"
41echo " DISPLAY: ${DISPLAY}"
42echo
43echo " JAVA_4_HOME: ${JAVA_4_HOME}"
44echo
45echo " JAVA_5_HOME: ${JAVA_5_HOME}"
46echo
47echo " JAVA_6_HOME: ${JAVA_6_HOME}"
48echo
Carl Anderson7164de22013-10-04 15:49:32 -040049echo " JAVA_7_HOME: ${JAVA_7_HOME}"
50echo
david_williams6065fc22010-08-04 01:18:23 +000051echo " ANT_HOME: ${ANT_HOME}"
52echo
53echo " PATH: ${PATH}"
54echo
55echo " BASEOS: ${BASEOS}"
56echo " BASEWS: ${BASEWS}"
57echo " BASEARCH: ${BASEARCH}"
58echo
59echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
60echo
david_williamse0918c52010-08-07 14:15:14 +000061echo " remember to check that X virtual frame buffer is running for display :$DISPLAYNUMBER for headless unit tests";
david_williams2c9dcbc2010-09-12 03:25:19 +000062echo
63echo " IBM_JAVA_OPTIONS: ${IBM_JAVA_OPTIONS}"
david_williams5b3d3782010-09-12 03:37:14 +000064echo
david_williams2c9dcbc2010-09-12 03:25:19 +000065
david_williams6065fc22010-08-04 01:18:23 +000066ps -ef | grep Xvfb
david_williams132f3dc2010-08-08 02:04:29 +000067echo;