Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Webster2012-11-28 20:40:20 +0000
committerPaul Webster2012-11-28 20:40:20 +0000
commit4ea09a4fec6b03fa73fb2f595bd89b00be3ac4c2 (patch)
tree08a0b632cfa6b1112e8d7a9ea813b1c10b4afe67
parent3fb49ec991d835ea28c6e8282b77b47919647456 (diff)
downloadeclipse.platform.releng.aggregator-4ea09a4fec6b03fa73fb2f595bd89b00be3ac4c2.tar.gz
eclipse.platform.releng.aggregator-4ea09a4fec6b03fa73fb2f595bd89b00be3ac4c2.tar.xz
eclipse.platform.releng.aggregator-4ea09a4fec6b03fa73fb2f595bd89b00be3ac4c2.zip
Bug 395158 - [CBI] Gather up the compiler output
Copy out the @dot.xml file to the compile logs location.
-rw-r--r--scripts/build-functions.sh25
-rw-r--r--scripts/gather-parts.sh1
2 files changed, 26 insertions, 0 deletions
diff --git a/scripts/build-functions.sh b/scripts/build-functions.sh
index 3db0699ec..7e78b79df 100644
--- a/scripts/build-functions.sh
+++ b/scripts/build-functions.sh
@@ -473,6 +473,31 @@ fn-gather-repo-zips () {
popd
}
+# USAGE: fn-gather-compile-logs BUILD_ID REPO_DIR BUILD_DIR
+# BUILD_ID: I20121116-0700
+# REPO_DIR: /shared/eclipse/builds/R4_2_maintenance/gitCache/eclipse.platform.releng.aggregator
+# BUILD_DIR: /shared/eclipse/builds/R4_2_maintenance/dirs/M20121120-1747
+fn-gather-compile-logs () {
+ BUILD_ID="$1"; shift
+ REPO_DIR="$1"; shift
+ BUILD_DIR="$1"; shift
+ mkdir -p "$BUILD_DIR"/compilelogs/plugins
+ pushd "$REPO_DIR"
+ for dot in $( find * -name "@dot.xml" ); do
+ echo "Processing $dot" # org.eclipse.e4.core.di/target/@dot.xml
+ targetDir=$( dirname "$dot" )
+ if [ ! -r "$targetDir"/MANIFEST.MF ]; then
+ echo "**Failed to process $dot"
+ else
+ BUNDLE_ID=$( grep Bundle-SymbolicName "$targetDir"/MANIFEST.MF | cut -f2 -d" " | cut -f1 -d\; )
+ BUNDLE_VERSION=$( grep Bundle-Version "$targetDir"/MANIFEST.MF | cut -f2 -d" " )
+ mkdir "$BUILD_DIR"/compilelogs/plugins/${BUNDLE_ID}_${BUNDLE_VERSION}
+ cp "$dot" "$BUILD_DIR"/compilelogs/plugins/${BUNDLE_ID}_${BUNDLE_VERSION}
+ fi
+ done
+ popd
+}
+
# USAGE: fn-gather-main-index BUILD_ID REPO_DIR BUILD_DIR STREAM BUILD_TYPE BUILD_DATE
# BUILD_ID: I20121116-0700
diff --git a/scripts/gather-parts.sh b/scripts/gather-parts.sh
index da83cde50..fa113b888 100644
--- a/scripts/gather-parts.sh
+++ b/scripts/gather-parts.sh
@@ -43,4 +43,5 @@ fn-gather-platform "$BUILD_ID" "$aggDir" "$buildDirectory"
fn-gather-swt-zips "$BUILD_ID" "$aggDir" "$buildDirectory"
fn-gather-test-zips "$BUILD_ID" "$aggDir" "$buildDirectory"
fn-gather-repo-zips "$BUILD_ID" "$aggDir" "$buildDirectory"
+fn-gather-compile-logs "$BUILD_ID" "$aggDir" "$buildDirectory"
fn-gather-main-index "$BUILD_ID" "$aggDir" "$buildDirectory" "$STREAM" "$BUILD_TYPE" "$BUILD_DATE"

Back to the top