Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Webster2012-11-16 14:53:02 +0000
committerPaul Webster2012-11-16 14:53:02 +0000
commitc4cbee6cd7626dfa284beb029cd640cbc156babc (patch)
tree71077549dfd94f763f361e03f77cd00c763a05c0
parent4d22cbaca4933ea71b6020b5865c3fbc246cf50b (diff)
downloadeclipse.platform.releng.aggregator-c4cbee6cd7626dfa284beb029cd640cbc156babc.tar.gz
eclipse.platform.releng.aggregator-c4cbee6cd7626dfa284beb029cd640cbc156babc.tar.xz
eclipse.platform.releng.aggregator-c4cbee6cd7626dfa284beb029cd640cbc156babc.zip
Bug 393926 - [CBI] execute the maven build
run-maven-build.sh will install signing, eclipse parent, and maven-cbi (automated test gathering support) and then run the build.
-rw-r--r--scripts/build-functions.sh54
-rw-r--r--scripts/build_eclipse_org.env4
-rw-r--r--scripts/run-maven-build.sh9
3 files changed, 65 insertions, 2 deletions
diff --git a/scripts/build-functions.sh b/scripts/build-functions.sh
index 9ee71c9e1..916e46921 100644
--- a/scripts/build-functions.sh
+++ b/scripts/build-functions.sh
@@ -158,3 +158,57 @@ fn-maven-signer-install () {
-Dmaven.repo.local=$LOCAL_REPO
popd
}
+
+# USAGE: fn-maven-parent-install REPO_DIR LOCAL_REPO
+# REPO_DIR: /shared/eclipse/builds/R4_2_maintenance/gitCache/eclipse.platform.releng.aggregator
+# LOCAL_REPO: /shared/eclipse/builds/R4_2_maintenance/localMavenRepo
+fn-maven-parent-install () {
+ REPO_DIR="$1"; shift
+ LOCAL_REPO="$1"; shift
+ pushd "$REPO_DIR"
+ mvn -f eclipse-parent/pom.xml \
+ clean install \
+ -Dmaven.repo.local=$LOCAL_REPO
+ popd
+}
+
+# USAGE: fn-maven-cbi-install REPO_DIR LOCAL_REPO
+# REPO_DIR: /shared/eclipse/builds/R4_2_maintenance/gitCache/eclipse.platform.releng.aggregator
+# LOCAL_REPO: /shared/eclipse/builds/R4_2_maintenance/localMavenRepo
+fn-maven-cbi-install () {
+ REPO_DIR="$1"; shift
+ LOCAL_REPO="$1"; shift
+ pushd "$REPO_DIR"
+ mvn -f maven-cbi-plugin/pom.xml \
+ clean install \
+ -Dmaven.repo.local=$LOCAL_REPO
+ popd
+}
+
+# USAGE: fn-maven-build-aggregator BUILD_ID REPO_DIR LOCAL_REPO VERBOSE SIGNING
+# BUILD_ID: I20121116-0700
+# REPO_DIR: /shared/eclipse/builds/R4_2_maintenance/gitCache/eclipse.platform.releng.aggregator
+# LOCAL_REPO: /shared/eclipse/builds/R4_2_maintenance/localMavenRepo
+# VERBOSE: true
+# SIGNING: true
+fn-maven-build-aggregator () {
+ BUILD_ID="$1"; shift
+ REPO_DIR="$1"; shift
+ LOCAL_REPO="$1"; shift
+ MARGS=""
+ if $VERBOSE; then
+ MARGS="$MARGS -X"
+ fi
+ shift
+ if $SIGNING; then
+ MARGS="$MARGS -Peclipse-sign"
+ fi
+ shift
+ MARGS="$MARGS -Pbree-libs"
+ pushd "$REPO_DIR"
+ mvn $MARGS \
+ clean install \
+ -Dmaven.test.skip=true \
+ -Dmaven.repo.local=$LOCAL_REPO
+ popd
+}
diff --git a/scripts/build_eclipse_org.env b/scripts/build_eclipse_org.env
index 1afb1b7f3..9544cb1ac 100644
--- a/scripts/build_eclipse_org.env
+++ b/scripts/build_eclipse_org.env
@@ -14,4 +14,6 @@ JAVA_HOME=/opt/public/common/jdk1.7.0
MAVEN_OPTS=-Xmx2048m
MAVEN_PATH=/opt/public/common/apache-maven-3.0.4/bin
-BUILD_ID=I20121115-1330
+# BUILD_ID=I20121115-1330
+COMPARATOR=true
+SIGNING=false
diff --git a/scripts/run-maven-build.sh b/scripts/run-maven-build.sh
index 7d43374cc..94d8f6bb6 100644
--- a/scripts/run-maven-build.sh
+++ b/scripts/run-maven-build.sh
@@ -38,5 +38,12 @@ export JAVA_HOME="$JAVA_HOME"
export MAVEN_OPTS="$MAVEN_OPTS"
export PATH=${JAVA_HOME}/bin:${MAVEN_PATH}:$PATH
-fn-maven-signer-install "$signingDir" "$localRepo"
+if $SIGNING; then
+ fn-maven-signer-install "$signingDir" "$localRepo"
+fi
+
+fn-maven-parent-install "$aggDir" "$localRepo"
+
+fn-maven-cbi-install "$aggDir" "$localRepo"
+fn-maven-build-aggregator "$BUILD_ID" "$aggDir" "$localRepo" $COMPARATOR $SIGNING

Back to the top