Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2016-01-29 19:36:00 -0500
committerDavid Williams2016-01-29 19:36:00 -0500
commit13e1593d53e183d0f418e38e3f79ed70ca33f22b (patch)
tree38a08e757e42566e99eddc2b2c883cfb684c1daa
parent570f6ff1be91663c37b4a189a9e38b2f5dc2d0f9 (diff)
downloadeclipse.platform.releng.aggregator-13e1593d53e183d0f418e38e3f79ed70ca33f22b.tar.gz
eclipse.platform.releng.aggregator-13e1593d53e183d0f418e38e3f79ed70ca33f22b.tar.xz
eclipse.platform.releng.aggregator-13e1593d53e183d0f418e38e3f79ed70ca33f22b.zip
Bug 486617 - Mysterious build failure in I20160126-2000
-rwxr-xr-xproduction/master-build.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/production/master-build.sh b/production/master-build.sh
index 15da7a1c..1b2066ee 100755
--- a/production/master-build.sh
+++ b/production/master-build.sh
@@ -84,6 +84,10 @@ export logsDirectory="${buildDirectory}/buildlogs"
mkdir -p "${logsDirectory}"
checkForErrorExit $? "Could not create buildlogs directory: ${logsDirectory}"
+export loadLog=${loadLog:-"${logsDirectory}/loadLog.txt"}
+# First step uses '>' to start fresh. Subsequent should use '>>'
+printf "%-35s %s\n" "Load at build start: " "$(uptime)" > ${loadLog}
+
LOG=$buildDirectory/buildlogs/buildOutput.txt
#exec >>$LOG 2>&1
@@ -213,6 +217,7 @@ fn-write-property CBI_JDT_VERSION_ARG
fn-write-property PATCH_BUILD
fn-write-property ALT_POM_FILE
fn-write-property JAVA_DOC_TOOL
+fn-write-property loadLog
# any value of interest/usefulness can be added to BUILD_ENV_FILE
if [[ "${testbuildonly}" == "true" ]]
@@ -242,6 +247,7 @@ fn-write-property BUILD_HOME
BUILD_FAILED=""
$SCRIPT_PATH/get-aggregator.sh $BUILD_ENV_FILE 2>&1 | tee ${GET_AGGREGATOR_BUILD_LOG}
+printf "%-35s %s\n" "Load after checkout: " "$(uptime)" >> ${loadLog}
# if file exists, then get-aggregator failed
if [[ -f "${buildDirectory}/buildFailed-get-aggregator" ]]
then
@@ -342,6 +348,7 @@ else
# echo "[WARNING] Did not run pom-version-updater due to other variable settings"
#else
$SCRIPT_PATH/pom-version-updater.sh $BUILD_ENV_FILE 2>&1 | tee ${POM_VERSION_UPDATE_BUILD_LOG}
+ printf "%-35s %s\n" "Load after run-version-updater: " "$(uptime)" >> ${loadLog}
#fi
# if file exists, pom update failed
if [[ -f "${buildDirectory}/buildFailed-pom-version-updater" ]]
@@ -355,6 +362,7 @@ else
# if updater failed, something fairly large is wrong, so no need to compile,
# else, we compile - build here.
$SCRIPT_PATH/run-maven-build.sh $BUILD_ENV_FILE 2>&1 | tee ${RUN_MAVEN_BUILD_LOG}
+ printf "%-35s %s\n" "Load after run-maven-build: " "$(uptime)" >> ${loadLog}
# if file exists, then run maven build failed.
if [[ -f "${buildDirectory}/buildFailed-run-maven-build" ]]
then
@@ -369,6 +377,7 @@ else
else
# if build run maven build failed, no need to gather parts
$SCRIPT_PATH/gather-parts.sh $BUILD_ENV_FILE 2>&1 | tee ${GATHER_PARTS_BUILD_LOG}
+ printf "%-35s %s\n" "Load after gather-parts: " "$(uptime)" >> ${loadLog}
if [[ -f "${buildDirectory}/buildFailed-gather-parts" ]]
then
buildrc=1
@@ -383,6 +392,7 @@ fi
$SCRIPT_PATH/publish-eclipse.sh $BUILD_ENV_FILE >$logsDirectory/mb080_publish-eclipse_output.txt
checkForErrorExit $? "Error occurred during publish-eclipse"
+printf "%-35s %s\n" "Load after publish-eclipse: " "$(uptime)" >> ${loadLog}
# We don't publish repo if there was a build failure, it likely doesn't exist.
@@ -409,6 +419,7 @@ then
then
$SCRIPT_PATH/publish-equinox.sh $BUILD_ENV_FILE >$logsDirectory/mb085_publish-equinox_output.txt
checkForErrorExit $? "Error occurred during publish-equinox"
+ printf "%-35s %s\n" "Load after publish-equinox: " "$(uptime)" >> ${loadLog}
fi
fi
@@ -427,5 +438,7 @@ fn-write-property-close
# debugging build results or differences between runs, especially on different machines
env 1>$logsDirectory/mb100_all-env-variables_output.txt
+printf "%-35s %s\n" "Load at build end: " "$(uptime)" >> ${loadLog}
+
echo "Exiting build with RC code of $buildrc"
exit $buildrc

Back to the top