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 | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 15 | # Some things _have_ to go in this file, instead of being an ant property, |
| 16 | # since they may be used outside the contect of ant (or, before ant get's started). |
| 17 | # as one example, anything used directly in the cc_config.xml file has to be |
| 18 | # provided as environment variable, since it can not import ant property files |
david_williams | 3a43f63 | 2007-12-12 09:42:20 +0000 | [diff] [blame] | 19 | # like most ant project files can. |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 20 | |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 21 | # the top directory of build-related directories |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 22 | export BUILD_HOME=/shared/webtools |
| 23 | |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 24 | # the following does not commonly vary, but must be specified "early" |
| 25 | # so is specified in this file |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 26 | export RELENG_CONTROL=${BUILD_HOME}/releng.control |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 27 | |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 28 | # this variable must batch the screen number that Xvfb is using |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 29 | export DISPLAY=127.0.0.1:1.0 |
david_williams | 0985c46 | 2007-08-29 18:24:10 +0000 | [diff] [blame] | 30 | |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 31 | # these should be full, abosolute path to the respective home directories |
| 32 | # on this particular build machine |
| 33 | export ANT_HOME=/shared/webtools/apps/apache-ant-1.7.0 |
david_williams | 1e0ead8 | 2008-03-01 21:43:13 +0000 | [diff] [blame] | 34 | export JAVA_4_HOME=/shared/webtools/apps/IBMJava2-SDK-1.4.2-10.0.ppc |
david_williams | cc75649 | 2008-03-01 18:36:39 +0000 | [diff] [blame] | 35 | export JAVA_5_HOME=/shared/webtools/apps/ibm-java2-sdk-5.0-6.0-linux-ppc |
david_williams | 72c2bdb | 2009-07-15 14:33:36 +0000 | [diff] [blame] | 36 | export JAVA_6_HOME=/shared/webtools/apps/ibm-java-ppc-605 |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 37 | |
david_williams | 0a69564 | 2008-12-07 02:39:45 +0000 | [diff] [blame] | 38 | export CCDIR=/shared/webtools/apps/cruisecontrol-bin-2.8.1 |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 39 | |
| 40 | export BASEOS=linux |
| 41 | export BASEWS=gtk |
| 42 | export BASEARCH=ppc |
| 43 | |
| 44 | # no local build properties, for production builds |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 45 | # for local builds, this should be set to a real directory, |
david_williams | 536b595 | 2007-12-09 06:03:17 +0000 | [diff] [blame] | 46 | # so meaningful properties can be set for that local machine. |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 47 | # See the 'localBuildExample' directory for a starting example |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 48 | export LOCAL_BUILD_PROPERTIES_DIR= |
| 49 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 50 | # note: buildmaster email address should be "real" address |
| 51 | # that is subscribed to the mailing list, if you want to send |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 52 | # mail to mailing lists. |
david_williams | 7c95ad2 | 2008-02-26 01:25:42 +0000 | [diff] [blame] | 53 | export BUILD_BUILDMASTER_EMAIL=david.williams@eclipse.org |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 54 | export BUILD_BUILDMASTER_RETURN_NAME=wtpBuilder |
david_williams | befc9db | 2008-03-04 05:48:57 +0000 | [diff] [blame] | 55 | # use following for CC 2.7.1 |
| 56 | #export BUILD_RESULT_URL=http://build.eclipse.org:7777/dashboard/build/detail |
david_williams | b315aba | 2008-10-09 20:15:22 +0000 | [diff] [blame] | 57 | # use following for CC 2.7.2, 2.7.3 |
david_williams | befc9db | 2008-03-04 05:48:57 +0000 | [diff] [blame] | 58 | export BUILD_RESULT_URL=http://build.eclipse.org:7777/dashboard/tab/build/detail |
david_williams | a04c1c7 | 2008-03-03 03:55:24 +0000 | [diff] [blame] | 59 | |
david_williams | 6afd266 | 2007-08-20 06:43:52 +0000 | [diff] [blame] | 60 | export BUILD_ALWAYS_TO_ADDRESS=david_williams@us.ibm.com |
david_williams | 023b807 | 2008-12-12 08:24:49 +0000 | [diff] [blame] | 61 | |
david_williams | d79e500 | 2008-01-30 03:10:08 +0000 | [diff] [blame] | 62 | export BUILD_SUBJECT_PREFIX=WTPBUILD: |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 63 | |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 64 | # note: this file, notifyMapper.properties is not normally in cvs, |
david_williams | 2190252 | 2008-01-30 07:27:35 +0000 | [diff] [blame] | 65 | # to avoid "publishing" email addresses; but is maintained directly on |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 66 | # the build server. |
david_williams | 2190252 | 2008-01-30 07:27:35 +0000 | [diff] [blame] | 67 | export EMAIL_PROPERTIES=${BUILD_HOME}/notification/notifyMapper.properties |
| 68 | |
david_williams | d33d3a0 | 2007-08-22 04:40:40 +0000 | [diff] [blame] | 69 | # controls quietness of logging to console |
| 70 | # false means more output to console, true uses ant's logger |
david_williams | 4332d2a | 2008-01-11 13:05:59 +0000 | [diff] [blame] | 71 | export USE_LOGGER=true |
david_williams | d33d3a0 | 2007-08-22 04:40:40 +0000 | [diff] [blame] | 72 | |
| 73 | #contols ANT's quietness level |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 74 | # true logs error and warnings only |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 75 | export USE_QUIET=true |
david_williams | b25ea8d | 2007-08-22 07:22:55 +0000 | [diff] [blame] | 76 | |
david_williams | 0985c46 | 2007-08-29 18:24:10 +0000 | [diff] [blame] | 77 | # controls ANT's debug level |
| 78 | # setting to true will result in TONS of ouput |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 79 | export USE_DEBUG=false |
david_williams | 4d17cf5 | 2007-11-19 03:27:13 +0000 | [diff] [blame] | 80 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 81 | # should be true for production, false for local. |
| 82 | # it can be set to true for local builds, but then the |
david_williams | 3a43f63 | 2007-12-12 09:42:20 +0000 | [diff] [blame] | 83 | # properties in upload.properties need to be set to valid values. |
david_williams | 17833ec | 2007-12-11 03:21:46 +0000 | [diff] [blame] | 84 | export BUILD_UPLOAD=true |
david_williams | 80a0b0a | 2007-12-11 02:38:34 +0000 | [diff] [blame] | 85 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 86 | # normally, cvs logging output can be "really quiet", but if problems, then it can be turned back on |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 87 | # to get more potentially diagnostic information |
| 88 | # 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] | 89 | # saying you can't set both to true. |
| 90 | # we could put in some logic to prevent that, someday. |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 91 | export CVS_QUIET=true |
| 92 | export CVS_REALLY_QUIET=true |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 93 | # these cvs values need to have write access if |
| 94 | # tag.maps is true, as on production machine. |
| 95 | # This is the ID used to both read, and |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 96 | # to tag releng map files. |
| 97 | # |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 98 | # Note: |
| 99 | # 'ext' protocol typically requires |
david_williams | 842e419 | 2007-12-09 07:44:35 +0000 | [diff] [blame] | 100 | # environment variable CVS_RSH to be set to ssh |
| 101 | # So, we just always do it. Can't imagine it'd hurt |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 102 | # if protocol was pserver, but could be removed in that |
| 103 | # case, if desired. |
| 104 | export CVS_RSH=ssh |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 105 | export BUILD_CVS_READ_PROTOCOL=pserver |
| 106 | export BUILD_CVS_READ_USER=anonymous |
| 107 | export BUILD_CVS_WRITE_PROTOCOL=ext |
| 108 | export BUILD_CVS_WRITE_USER=david_williams |
| 109 | export BUILD_CVS_SERVER=dev.eclipse.org |
| 110 | |
| 111 | export BUILD_CVS_ROOT=/cvsroot/webtools |
| 112 | |
david_williams | 673ba39 | 2008-01-02 17:41:13 +0000 | [diff] [blame] | 113 | # for builds on local machines, SKIPUSERS should be 'true' to avoid |
david_williams | 2e0afe0 | 2008-01-02 04:11:40 +0000 | [diff] [blame] | 114 | # notifying users about those builds on your local machine |
| 115 | export SKIPUSERS=false |
david_williams | bd17e9e | 2008-01-20 05:05:16 +0000 | [diff] [blame] | 116 | |
| 117 | export DOWNLOAD_ROOT=/home/data/httpd/download.eclipse.org |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 118 | |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 119 | # Here this variable, SKIP_JAR_SIGNING, should be false for |
| 120 | # production builds. But, the variable is set elsewhere to true, |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 121 | # such as in cc_config, for the R2 builds. |
| 122 | # There is another variable, 'sign' in each components build.properties |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 123 | # to allow components to be the final say to allow signing. |
| 124 | # This variable, SKIP_JAR_SIGNING, should always be true for |
| 125 | # "local" builds. |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 126 | export SKIP_JAR_SIGNING=false |
david_williams | 0be0d97 | 2008-02-16 05:38:57 +0000 | [diff] [blame] | 127 | |
david_williams | 6ce5e35 | 2009-01-13 23:49:50 +0000 | [diff] [blame] | 128 | # this is used especially during signing, where we need to execute |
david_williams | cc773b1 | 2008-02-23 06:28:05 +0000 | [diff] [blame] | 129 | # the signing script from a signer ID, while running as wtpBuild. |
| 130 | # should be blank or omitted in local builds |
david_williams | 0be0d97 | 2008-02-16 05:38:57 +0000 | [diff] [blame] | 131 | export REMOTE_SSH_COMMAND="ssh david_williams@build.eclipse.org " |
david_williams | de35b32 | 2008-12-17 03:51:59 +0000 | [diff] [blame] | 132 | |
david_williams | 41e30c8 | 2008-12-17 08:24:40 +0000 | [diff] [blame] | 133 | export DASHBOARDHOST=206.191.52.34 |