diff options
author | kitlo | 2019-03-15 03:13:57 +0000 |
---|---|---|
committer | Sravan Kumar Lakkimsetti | 2019-03-21 08:03:57 +0000 |
commit | 08d43b6a317c24a390ed6cd4dbd883c5f9df81e6 (patch) | |
tree | 1e9de8c59cf71ad43a5a3c3d3246d23c1d86ad0b /cje-production | |
parent | 37e8a3f60660a5045544e874bd175cf5cbf43da0 (diff) | |
download | eclipse.platform.releng.aggregator-08d43b6a317c24a390ed6cd4dbd883c5f9df81e6.tar.gz eclipse.platform.releng.aggregator-08d43b6a317c24a390ed6cd4dbd883c5f9df81e6.tar.xz eclipse.platform.releng.aggregator-08d43b6a317c24a390ed6cd4dbd883c5f9df81e6.zip |
Bug 545430 - Create new scripts to gather different artifacts
Change-Id: I44e05f4bd3002cebdd3237e9eb7793d13c158775
Signed-off-by: kitlo <kitlo@us.ibm.com>
Diffstat (limited to 'cje-production')
-rw-r--r-- | cje-production/buildproperties.txt | 31 | ||||
-rwxr-xr-x | cje-production/mbscripts/mb010_createEnvfiles.sh | 9 | ||||
-rw-r--r-- | cje-production/mbscripts/mb300_gatherParts.sh | 146 |
3 files changed, 169 insertions, 17 deletions
diff --git a/cje-production/buildproperties.txt b/cje-production/buildproperties.txt index 181e57a65..a3b524160 100644 --- a/cje-production/buildproperties.txt +++ b/cje-production/buildproperties.txt @@ -15,15 +15,27 @@ # This file contains environmental properties as key value pairs. Lines starting # with # are considered comments and no spaces allowed in keys +# CJE build variables BRANCH="master" PATCH_OR_BRANCH_LABEL="master" BUILD_TYPE="I" +STREAM="4.11.0" GIT_ROOT="git://git.eclipse.org/gitroot" AGG_REPO="/platform/eclipse.platform.releng.aggregator.git" AGG_DIR="gitCache/eclipse.platform.releng.aggregator" -# -BUILD_ROOT="siteDir" -STREAM="4.11.0" +DROP_DIR="siteDir/eclipse/downloads/drops4" +TMP_DIR="tmp" + +# Base builder parameters +PREVIOUS_RELEASE_ID="R-4.10-201812060815" +PREVIOUS_RELEASE_VER="4.10" +BUILDTOOLS_REPO="http://build.eclipse.org/eclipse/buildtools/" +WEBTOOLS_REPO="https://download.eclipse.org/webtools/downloads/drops/R3.12.0/R-3.12.0-20181130055351/repositoryunittests/" +WEBTOOLS_VER="1.2.0.v201405010053" +BASEBUILDER_DIR="siteDir/org.eclipse.releng.basebuilder" +ECLIPSE_RUN_REPO="https://download.eclipse.org/eclipse/updates/4.11-I-builds/" + +# Old build variables, need to clean up GIT_ACCESS="ssh://genie.releng@git.eclipse.org:29418" aggDir="gitCache/eclipse.platform.releng.aggregator" REPO_AND_ACCESS="ssh://genie.releng@git.eclipse.org:29418" @@ -38,22 +50,9 @@ SIGNING="true" MAVEN_BREE="-Pbree-libs" GIT_PUSH="git push" LOCAL_REPO="localMavenRepo" -SCRIPT_PATH="." JAVA_DOC_TOOL="-Declipse.javadoc=/shared/common/java/openjdk/jdk-11_x64-latest/bin/javadoc" MAVEN_SETTINGS="--settings /shared/eclipse/settings/settingsBuildMachine.xml" API_PREV_REF_LABEL="4.9" API_FREEZE_REF_LABEL="4.10RC1" DOWNLOAD_HOST="download.eclipse.org" ARCHIVE_HOST="archive.eclipse.org" -ECLIPSE_RUN_REPO="https://download.eclipse.org/eclipse/updates/4.11-I-builds/" - -# Base builder parameters start -PREVIOUS_RELEASE_ID="R-4.10-201812060815" -PREVIOUS_RELEASE_VER="4.10" -BUILDTOOLS_REPO="http://build.eclipse.org/eclipse/buildtools/" -WEBTOOLS_REPO="https://download.eclipse.org/webtools/downloads/drops/R3.12.0/R-3.12.0-20181130055351/repositoryunittests/" -WEBTOOLS_VER="1.2.0.v201405010053" -BASEBUILDER_DIR="siteDir/org.eclipse.releng.basebuilder" - -# Base builder parameters end - diff --git a/cje-production/mbscripts/mb010_createEnvfiles.sh b/cje-production/mbscripts/mb010_createEnvfiles.sh index eb6228d33..3a6320acb 100755 --- a/cje-production/mbscripts/mb010_createEnvfiles.sh +++ b/cje-production/mbscripts/mb010_createEnvfiles.sh @@ -39,7 +39,14 @@ fn-addToPropFiles () } echo "#!/bin/bash" >> $BUILD_ENV_FILE -fn-addToPropFiles TIMESTAMP "\"$(date +%Y%m%d-%H%M --date='@'$(date +%s))\"" + +# We set RAWDATE first thing here to make the "start of build" timestamp more accurate. +# Note that a roundup is added to compensate the occasional delay. +RAWDATE=$(date +%s) +REMAINDER=$((RAWDATE % 600)) +RAWDATE_TRUNC=$((RAWDATE - REMAINDER)) +export RAWDATE +fn-addToPropFiles TIMESTAMP "\"$(date +%Y%m%d-%H%M --date='@'$RAWDATE_TRUNC)\"" while read propLine do diff --git a/cje-production/mbscripts/mb300_gatherParts.sh b/cje-production/mbscripts/mb300_gatherParts.sh new file mode 100644 index 000000000..c50b4a108 --- /dev/null +++ b/cje-production/mbscripts/mb300_gatherParts.sh @@ -0,0 +1,146 @@ +#!/bin/bash -x + +#******************************************************************************* +# Copyright (c) 2019 IBM Corporation and others. +# +# This program and the accompanying materials +# are made available under the terms of the Eclipse Public License 2.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Kit Lo - initial API and implementation +#******************************************************************************* + +if [ $# -ne 1 ]; then + echo USAGE: $0 env_file + exit 1 +fi + +source $CJE_ROOT/scripts/common-functions.shsource +source $1 + +mkdir -p $CJE_ROOT/$DROP_DIR/$BUILD_ID/repository +mkdir -p $CJE_ROOT/$TMP_DIR + +# gather repo +echo $PATCH_BUILD +if [ -z $PATCH_BUILD ]; then + REPO_DIR=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder/eclipse.platform.repository/target/repository +else + PATCH_BUILD_GENERIC=java12patch + REPO_DIR=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder/$PATCH_BUILD/eclipse.releng.repository.$PATCH_BUILD_GENERIC/target/repository +fi + +if [ -d $REPO_DIR ]; then + pushd $REPO_DIR + cp -r * $CJE_ROOT/$DROP_DIR/$BUILD_ID/repository + popd +fi + +if [ -z $PATCH_BUILD ]; then + # gather sdk + TARGET_PRODUCTS_DIR=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder/sdk/target/products + if [ -d $TARGET_PRODUCTS_DIR ]; then + pushd $TARGET_PRODUCTS_DIR + cp org.eclipse.sdk.ide-linux.gtk.ppc64le.tar.gz $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-SDK-$BUILD_ID-linux-gtk-ppc64le.tar.gz + cp org.eclipse.sdk.ide-linux.gtk.x86_64.tar.gz $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-SDK-$BUILD_ID-linux-gtk-x86_64.tar.gz + cp org.eclipse.sdk.ide-macosx.cocoa.x86_64.tar.gz $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-SDK-$BUILD_ID-macosx-cocoa-x86_64.tar.gz + cp org.eclipse.sdk.ide-macosx.cocoa.x86_64.dmg $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-SDK-$BUILD_ID-macosx-cocoa-x86_64.dmg + cp org.eclipse.sdk.ide-win32.win32.x86_64.zip $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-SDK-$BUILD_ID-win32-x86_64.zip + popd + fi + + # gather platform + TARGET_PRODUCTS_DIR=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder/platform/target/products + if [ -d $TARGET_PRODUCTS_DIR ]; then + pushd $TARGET_PRODUCTS_DIR + cp org.eclipse.platform.ide-linux.gtk.ppc64le.tar.gz $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-$BUILD_ID-linux-gtk-ppc64le.tar.gz + cp org.eclipse.platform.ide-linux.gtk.x86_64.tar.gz $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-$BUILD_ID-linux-gtk-x86_64.tar.gz + cp org.eclipse.platform.ide-macosx.cocoa.x86_64.tar.gz $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-$BUILD_ID-macosx-cocoa-x86_64.tar.gz + cp org.eclipse.platform.ide-macosx.cocoa.x86_64.dmg $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-$BUILD_ID-macosx-cocoa-x86_64.dmg + cp org.eclipse.platform.ide-win32.win32.x86_64.zip $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-$BUILD_ID-win32-x86_64.zip + popd + fi + + # gather platform sources + TARBALL_DIR=$CJE_ROOT/$AGG_DIR/eclipse-platform-sources/target/ + if [ -d $TARBALL_DIR ]; then + pushd $TARBALL_DIR + cp eclipse-platform-sources-*.tar.xz $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-platform-sources-$BUILD_ID.tar.xz + popd + fi + + # gather swt zips + SWT_BUNDLES_DIR=$CJE_ROOT/$AGG_DIR/eclipse.platform.swt.binaries/bundles + if [ -d $SWT_BUNDLES_DIR ]; then + pushd $SWT_BUNDLES_DIR + cp */target/*.zip $CJE_ROOT/$DROP_DIR/$BUILD_ID + popd + fi + + # gather test zips + TEST_ZIP_DIR=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/target + if [ -d $TEST_ZIP_DIR ]; then + pushd $TEST_ZIP_DIR + cp eclipse-junit-tests-bundle.zip $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-Automated-Tests-$BUILD_ID.zip + popd + fi + + # gather test framework + TEST_FRAMEWORK_DIR=$TEST_ZIP_DIR/eclipse-test-framework + if [ -d $TEST_FRAMEWORK_DIR ]; then + pushd $TEST_FRAMEWORK_DIR + zip -r $CJE_ROOT/$DROP_DIR/$BUILD_ID/eclipse-test-framework-$BUILD_ID.zip * + popd + fi + + # slice repos + LAUNCHER_JAR=$(find $CJE_ROOT/$BASEBUILDER_DIR -name org.eclipse.equinox.launcher_*.jar | tail -1) + ANT_SCRIPT=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder/repos/buildAll.xml + PLATFORM_REPO_DIR=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder/eclipse.platform.repository/target/repository + if [ -d $PLATFORM_REPO_DIR ]; then + pushd $PLATFORM_REPO_DIR + java -jar $LAUNCHER_JAR \ + -application org.eclipse.ant.core.antRunner \ + -buildfile $ANT_SCRIPT \ + -data $CJE_ROOT/$DROP_DIR/$BUILD_ID/workspace-buildrepos \ + -Declipse.build.configs=$CJE_ROOT/$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder \ + -DbuildId=$BUILD_ID \ + -DbuildLabel=$BUILD_ID \ + -DbuildRepo=$PLATFORM_REPO_DIR \ + -DbuildDirectory=$CJE_ROOT/$DROP_DIR/$BUILD_ID \ + -DpostingDirectory=$CJE_ROOT/$DROP_DIR \ + -DequinoxPostingDirectory=$CJE_ROOT/siteDir/equinox/drops \ + -Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR + fi +fi + +# gather ecj jars +ECJ_JAR_DIR=$CJE_ROOT/$AGG_DIR/eclipse.jdt.core/org.eclipse.jdt.core/target +if [ -d $ECJ_JAR_DIR ]; then + pushd $ECJ_JAR_DIR + cp org.eclipse.jdt.core-*-SNAPSHOT-batch-compiler.jar $CJE_ROOT/$DROP_DIR/$BUILD_ID/ecj-$BUILD_ID.jar + cp org.eclipse.jdt.core-*-SNAPSHOT-batch-compiler-src.jar $CJE_ROOT/$DROP_DIR/$BUILD_ID/ecjsrc-$BUILD_ID.jar + popd +fi + +# gather buildnotes +if [ -d $CJE_ROOT/$AGG_DIR ]; then + pushd $CJE_ROOT/$AGG_DIR + buildnotesDir=$CJE_ROOT/$DROP_DIR/$BUILD_ID/buildnotes + mkdir -p $buildnotesDir + find . -name buildnotes_*.html -exec rsync '{}' $buildnotesDir \; + popd +fi + +# gather artifactcomparisons +if [ -d $CJE_ROOT/$AGG_DIR ]; then + pushd $CJE_ROOT/$AGG_DIR + comparatorlogsDir=$CJE_ROOT/$DROP_DIR/$BUILD_ID/buildlogs/comparatorlogs + mkdir -p $comparatorlogsDir + find . -regex .*target/artifactcomparison -type d -exec zip -r $comparatorlogsDir/artifactcomparisons.zip '{}' \; + popd +fi
\ No newline at end of file |