david_williams | 8e7dbc6 | 2008-10-04 20:25:16 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 2 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 3 | # If "local" users have this file on their path, |
| 4 | # that is, in "someDirectory" on the users local path, |
david_williams | 0985c46 | 2007-08-29 18:24:10 +0000 | [diff] [blame] | 5 | # then the bash "include source" function will find that version |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 6 | # first, instead of this "standard" eclipse production one. |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 7 | # That is assuming users don't have "." on their path, which |
| 8 | # they shouldn't. Many systems assumes ${HOME}/bin is on the |
| 9 | # users path. |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 10 | |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 11 | # This file is intentionally named "shsource" to denote this is intended to |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 12 | # be included in other sh files, with "source" command, not |
| 13 | # executed on its own. |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 14 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 15 | # Note that throughout this file, the syntax of ${var:-default} is used so that |
david_williams | bc8a02b | 2011-01-07 04:06:23 +0000 | [diff] [blame] | 16 | # if a user has overridden the value, then the value will not be "re assigned" to the |
| 17 | # default value ... but, if the variable has not been set yet, the default value will be |
| 18 | # used. The default value should always be correct for the production machine, |
| 19 | # "local" builds will need to override most of them, but not necessarily all. |
| 20 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 21 | # Some things _have_ to go in this file, instead of being an ant property, |
| 22 | # since they may be used outside the contect of ant (or, before ant get's started). |
| 23 | # as one example, anything used directly in the cc_config.xml file has to be |
| 24 | # provided as environment variable, since it can not import ant property files |
david_williams | 3a43f63 | 2007-12-12 09:42:20 +0000 | [diff] [blame] | 25 | # like most ant project files can. |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 26 | |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 27 | # the top directory of build-related directories |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 28 | export BUILD_HOME=${BUILD_HOME:-/shared/webtools} |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 29 | |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 30 | # the following does not commonly vary, but must be specified "early" |
| 31 | # so is specified in this file |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 32 | export RELENG_CONTROL=${RELENG_CONTROL:-${BUILD_HOME}/releng.control} |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 33 | |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 34 | # this variable must batch the screen number that Xvfb is using |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 35 | export DISPLAYNUMBER=${DISPLAYNUMBER:-9} |
| 36 | export DISPLAY=${DISPLAY:-127.0.0.1:$DISPLAYNUMBER.0} |
david_williams | 0985c46 | 2007-08-29 18:24:10 +0000 | [diff] [blame] | 37 | |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 38 | # these should be full, abosolute path to the respective home directories |
| 39 | # on this particular build machine |
david_williams | d3fb34a | 2011-02-23 03:56:14 +0000 | [diff] [blame] | 40 | export ANT_HOME=${ANT_HOME:-/shared/webtools/apps/apache-ant-1.8.2} |
david_williams | 38135e0 | 2011-08-13 20:53:10 +0000 | [diff] [blame] | 41 | export JAVA_4_HOME=${JAVA_4_HOME:-/shared/webtools/apps/IBMJava2-142} |
david_williams | a656453 | 2011-08-13 19:47:29 +0000 | [diff] [blame] | 42 | export JAVA_5_HOME=${JAVA_5_HOME:-/shared/webtools/apps/ibm-java2-i386-50} |
| 43 | export JAVA_6_HOME=${JAVA_6_HOME:-/shared/webtools/apps/ibm-java-i386-60} |
david_williams | 20c7df5 | 2010-05-18 13:36:03 +0000 | [diff] [blame] | 44 | |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 45 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 46 | export CCDIR=${CCDIR:-/shared/webtools/apps/cruisecontrol-bin-2.8.4} |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 47 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 48 | export BASEOS=${BASEOS:-linux} |
| 49 | export BASEWS=${BASEWS:-gtk} |
| 50 | export BASEARCH=${BASEARCH:-x86} |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 51 | |
| 52 | # no local build properties, for production builds |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 53 | # for local builds, this should be set to a real directory, |
david_williams | 536b595 | 2007-12-09 06:03:17 +0000 | [diff] [blame] | 54 | # so meaningful properties can be set for that local machine. |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 55 | # See the 'localBuildExample' directory for a starting example |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 56 | export LOCAL_BUILD_PROPERTIES_DIR=${LOCAL_BUILD_PROPERTIES_DIR:-} |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 57 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 58 | # note: buildmaster email address should be "real" address |
| 59 | # that is subscribed to the mailing list, if you want to send |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 60 | # mail to mailing lists. |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 61 | export BUILD_BUILDMASTER_EMAIL=${BUILD_BUILDMASTER_EMAIL:-david.williams@eclipse.org} |
| 62 | export BUILD_BUILDMASTER_RETURN_NAME=${BUILD_BUILDMASTER_RETURN_NAME:-wtpBuilder} |
david_williams | befc9db | 2008-03-04 05:48:57 +0000 | [diff] [blame] | 63 | # use following for CC 2.7.1 |
| 64 | #export BUILD_RESULT_URL=http://build.eclipse.org:7777/dashboard/build/detail |
david_williams | b315aba | 2008-10-09 20:15:22 +0000 | [diff] [blame] | 65 | # use following for CC 2.7.2, 2.7.3 |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 66 | export BUILD_RESULT_URL=${BUILD_RESULT_URL:-http://build.eclipse.org:7777/dashboard/tab/build/detail} |
david_williams | a04c1c7 | 2008-03-03 03:55:24 +0000 | [diff] [blame] | 67 | |
david_williams | 11afa10 | 2011-07-02 14:32:35 +0000 | [diff] [blame] | 68 | export BUILD_ALWAYS_TO_ADDRESS=${BUILD_ALWAYS_TO_ADDRESS:-ccc@us.ibm.com} |
david_williams | 023b807 | 2008-12-12 08:24:49 +0000 | [diff] [blame] | 69 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 70 | export BUILD_SUBJECT_PREFIX=${BUILD_SUBJECT_PREFIX:-WTPBUILD:} |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 71 | |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 72 | # note: this file, notifyMapper.properties is not normally in cvs, |
david_williams | 2190252 | 2008-01-30 07:27:35 +0000 | [diff] [blame] | 73 | # to avoid "publishing" email addresses; but is maintained directly on |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 74 | # the build server. |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 75 | export EMAIL_PROPERTIES=${EMAIL_PROPERTIES:-${BUILD_HOME}/notification/notifyMapper.properties} |
david_williams | 2190252 | 2008-01-30 07:27:35 +0000 | [diff] [blame] | 76 | |
david_williams | d33d3a0 | 2007-08-22 04:40:40 +0000 | [diff] [blame] | 77 | # controls quietness of logging to console |
| 78 | # false means more output to console, true uses ant's logger |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 79 | export USE_LOGGER=${USE_LOGGER:-true} |
david_williams | d33d3a0 | 2007-08-22 04:40:40 +0000 | [diff] [blame] | 80 | |
| 81 | #contols ANT's quietness level |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 82 | # true logs error and warnings only |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 83 | export USE_QUIET=${USE_QUIET:-true} |
david_williams | b25ea8d | 2007-08-22 07:22:55 +0000 | [diff] [blame] | 84 | |
david_williams | 0985c46 | 2007-08-29 18:24:10 +0000 | [diff] [blame] | 85 | # controls ANT's debug level |
| 86 | # setting to true will result in TONS of ouput |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 87 | export USE_DEBUG=${USE_DEBUG:-false} |
david_williams | 4d17cf5 | 2007-11-19 03:27:13 +0000 | [diff] [blame] | 88 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 89 | # should be true for production, false for local. |
| 90 | # it can be set to true for local builds, but then the |
david_williams | 3a43f63 | 2007-12-12 09:42:20 +0000 | [diff] [blame] | 91 | # properties in upload.properties need to be set to valid values. |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 92 | export BUILD_UPLOAD=${BUILD_UPLOAD:-true} |
david_williams | 80a0b0a | 2007-12-11 02:38:34 +0000 | [diff] [blame] | 93 | |
david_williams | fa314d0 | 2011-03-06 09:01:30 +0000 | [diff] [blame] | 94 | # normally, cvs logging output can be "really quiet", but if problems, |
| 95 | # then it can be turned back on |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 96 | # to get more potentially diagnostic information |
| 97 | # TODO: if both of these are 'true' and error is generated by cvs ... |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 98 | # saying you can't set both to true. |
david_williams | fa314d0 | 2011-03-06 09:01:30 +0000 | [diff] [blame] | 99 | # we could put in some logic to prevent that, but ... CVS_QUIET is not that |
| 100 | # useful as almost the same thing as default. See |
| 101 | # https://bugs.eclipse.org/bugs/show_bug.cgi?id=256379 |
| 102 | # So, I am eliminating cvs_quiet |
| 103 | # export CVS_QUIET=${CVS_QUIET:-true} |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 104 | export CVS_REALLY_QUIET=${CVS_REALLY_QUIET:-true} |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 105 | # these cvs values need to have write access if |
| 106 | # tag.maps is true, as on production machine. |
| 107 | # This is the ID used to both read, and |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 108 | # to tag releng map files. |
| 109 | # |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 110 | # Note: |
| 111 | # 'ext' protocol typically requires |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 112 | # environment variable CVS_RSH to be set to ssh |
| 113 | # So, we just always do it. Can't imagine it'd hurt |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 114 | # if protocol was pserver, but could be removed in that |
| 115 | # case, if desired. |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 116 | export CVS_RSH=${CVS_RSH:-ssh} |
david_williams | c852102 | 2011-07-02 02:53:26 +0000 | [diff] [blame] | 117 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 118 | export BUILD_CVS_READ_PROTOCOL=${BUILD_CVS_READ_PROTOCOL:-pserver} |
| 119 | export BUILD_CVS_READ_USER=${BUILD_CVS_READ_USER:-anonymous} |
david_williams | c852102 | 2011-07-02 02:53:26 +0000 | [diff] [blame] | 120 | |
| 121 | # Note: a real committer id is required to tag map files. |
| 122 | # This is hard to do automatically, running under wtpBuild user id. |
| 123 | # if anonymous is used, no tagging of map files will be attempted. |
| 124 | # export BUILD_CVS_WRITE_PROTOCOL=${BUILD_CVS_WRITE_PROTOCOL:-ext} |
| 125 | # export BUILD_CVS_WRITE_USER=${BUILD_CVS_WRITE_USER:-realCommitterID} |
| 126 | export BUILD_CVS_WRITE_PROTOCOL=${BUILD_CVS_WRITE_PROTOCOL:-pserver} |
| 127 | export BUILD_CVS_WRITE_USER=${BUILD_CVS_WRITE_USER:-anonymous} |
| 128 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 129 | export BUILD_CVS_SERVER=${BUILD_CVS_SERVER:-dev.eclipse.org} |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 130 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 131 | export BUILD_CVS_ROOT=${BUILD_CVS_ROOT:-/cvsroot/webtools} |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 132 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 133 | # for builds on local machines, SKIPUSERS should be 'true' to avoid |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 134 | # notifying users about those builds on your local machine |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 135 | export SKIPUSERS=${SKIPUSERS:-false} |
david_williams | bd17e9e | 2008-01-20 05:05:16 +0000 | [diff] [blame] | 136 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 137 | export DOWNLOAD_ROOT=${DOWNLOAD_ROOT:-/home/data/httpd/download.eclipse.org} |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 138 | |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 139 | # Here this variable, SKIP_JAR_SIGNING, should be false for |
| 140 | # production builds. But, the variable is set elsewhere to true, |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 141 | # such as in cc_config, for the R2 builds. |
| 142 | # There is another variable, 'sign' in each components build.properties |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 143 | # to allow components to be the final say to allow signing. |
| 144 | # This variable, SKIP_JAR_SIGNING, should always be true for |
| 145 | # "local" builds. |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 146 | export SKIP_JAR_SIGNING=${SKIP_JAR_SIGNING:-false} |
david_williams | 0be0d97 | 2008-02-16 05:38:57 +0000 | [diff] [blame] | 147 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 148 | export DASHBOARDHOST=${DASHBOARDHOST:-206.191.52.34} |
david_williams | 7f87e3e | 2009-11-19 03:47:11 +0000 | [diff] [blame] | 149 | |
| 150 | # comment out WTP_XULRUNNER if no special version is required |
| 151 | # rarely needed. machine specific |
david_williams | 297615b | 2010-09-11 22:03:53 +0000 | [diff] [blame] | 152 | # no longer needed on build.eclipse.org |
david_williams | e8dcff7 | 2010-08-09 01:31:08 +0000 | [diff] [blame] | 153 | #export WTP_XULRUNNER=/shared/common/mozilla-xulrunner181-1.8.1.4-30.ppc |
david_williams | 297615b | 2010-09-11 22:03:53 +0000 | [diff] [blame] | 154 | #echo "WTP_XULRUNNER: " $WTP_XULRUNNER |
david_williams | a091ca0 | 2009-12-28 07:38:44 +0000 | [diff] [blame] | 155 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 156 | export DASHBOARD_CONFIG=${DASHBOARD_CONFIG:-${RELENG_CONTROL}/dashboard-config.xml} |
david_williams | 297615b | 2010-09-11 22:03:53 +0000 | [diff] [blame] | 157 | |
| 158 | |
| 159 | # global VM options |
| 160 | # see following for general information about setting env variables that effect IBM's JVM |
| 161 | # http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=/com.ibm.java.doc.diagnostics.50/diag/appendixes/env_var/env_jvm.html |
| 162 | |
| 163 | # see https://bugs.eclipse.org/bugs/show_bug.cgi?id=324983 |
| 164 | # -Declipse.p2.mirrors=false |
| 165 | |
| 166 | # see https://bugs.eclipse.org/bugs/show_bug.cgi?id=323876 |
| 167 | # -Dcom.ibm.tools.attach.enable=no |
| 168 | |
david_williams | b4419ab | 2011-01-07 05:15:21 +0000 | [diff] [blame] | 169 | export IBM_JAVA_OPTIONS=${IBM_JAVA_OPTIONS:-"-Dcom.ibm.tools.attach.enable=no -Declipse.p2.mirrors=false"} |
david_williams | 297615b | 2010-09-11 22:03:53 +0000 | [diff] [blame] | 170 | |
david_williams | 6fe2873 | 2011-01-22 07:27:06 +0000 | [diff] [blame] | 171 | export ECLIPSE_HOME=${ECLIPSE_HOME:-"/shared/webtools/apps/eclipse361/eclipse"} |
| 172 | export ECLIPSE_EXE=${ECLIPSE_EXE:-"${ECLIPSE_HOME}/eclipse"} |