Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2013-02-21 18:07:39 +0000
committerDavid Williams2013-02-21 18:07:39 +0000
commit992af6ab27fb6f3ebd7d772111cd53cd782378ff (patch)
treea7f4d1230e51537145d0f88448562783fe7c7f29 /production/sdk/collect.sh
parent27ca26976f8ecab74ddd20a66841b411085e46b1 (diff)
downloadeclipse.platform.releng.aggregator-992af6ab27fb6f3ebd7d772111cd53cd782378ff.tar.gz
eclipse.platform.releng.aggregator-992af6ab27fb6f3ebd7d772111cd53cd782378ff.tar.xz
eclipse.platform.releng.aggregator-992af6ab27fb6f3ebd7d772111cd53cd782378ff.zip
Bug 398041 - [CBI] remove eclipsebuilder as submodule (prep)
Diffstat (limited to 'production/sdk/collect.sh')
-rwxr-xr-xproduction/sdk/collect.sh69
1 files changed, 69 insertions, 0 deletions
diff --git a/production/sdk/collect.sh b/production/sdk/collect.sh
new file mode 100755
index 000000000..f50166a01
--- /dev/null
+++ b/production/sdk/collect.sh
@@ -0,0 +1,69 @@
+#!/usr/bin/env bash
+
+# Utility to be called from test data collection cron job,
+# to invoke the main code. expected to be called with piped
+# input, such as
+# ./collect.sh < testjobs/testjobdata201210220811.txt
+
+# Simple utility to run as cronjob to run Eclipse Platform builds
+# Normally resides in $BUILD_HOME
+
+# Start with minimal path for consistency across machines
+# plus, cron jobs do not inherit an environment
+# care is needed not have anything in ${HOME}/bin that would effect the build
+# unintentionally, but is required to make use of "source buildeclipse.shsource" on
+# local machines.
+# Likely only a "release engineer" would be interested, such as to override "SIGNING" (setting it
+# to false) for a test I-build on a remote machine.
+export PATH=/usr/local/bin:/usr/bin:/bin:${HOME}/bin
+# unset common variables (some defined for e4Build) which we don't want (or, set ourselves)
+unset JAVA_HOME
+unset JAVA_ROOT
+unset JAVA_JRE
+unset CLASSPATH
+unset JAVA_BINDIR
+unset JRE_HOME
+
+# 0002 is often the default for shell users, but it is not when ran from
+# a cron job, so we set it explicitly, so releng group has write access to anything
+# we create.
+oldumask=`umask`
+umask 0002
+echo "umask explicitly set to 0002, old value was $oldumask"
+
+# this buildeclipse.shsource file is to ease local builds to override some variables.
+# It should not be used for production builds.
+source buildeclipse.shsource 2>/dev/null
+
+
+export JAVA_HOME=/shared/common/jdk1.7.0_11
+export ANT_HOME=/shared/common/apache-ant-1.8.4
+
+export PATH=${JAVA_HOME}/bin:${ANT_HOME}/bin:$PATH
+
+read inputline
+echo "inputline: $inputline"
+
+job="$(echo $inputline | cut -d\ -f1)"
+buildNumber="$(echo $inputline | cut -d\ -f2)"
+buildId="$(echo $inputline | cut -d\ -f3)"
+eclipseStream="$(echo $inputline | cut -d\ -f4)"
+BUILD_TECH="$(echo $inputline | cut -d\ -f5)"
+EBUILDER_HASH="$(echo $inputline | cut -d\ -f6)"
+
+echo "job: $job"
+echo "buildNumber: $buildNumber"
+echo "buildId: $buildId"
+echo "eclipseStream: $eclipseStream"
+echo "BUILD_TECH: $BUILD_TECH"
+echo "EBUILDER_HASH: $EBUILDER_HASH"
+
+${ANT_HOME}/bin/ant -version
+# -lib /shared/common/apache-ant-1.8.4/lib/ \
+${ANT_HOME}/bin/ant -f /shared/eclipse/sdk/collectTestResults.xml \
+ -Djob=${job} \
+ -DbuildNumber=${buildNumber} \
+ -DbuildId=${buildId} \
+ -DeclipseStream=${eclipseStream} \
+ -DBUILD_TECH=${BUILD_TECH} \
+ -DEBUILDER_HASH=${EBUILDER_HASH}

Back to the top