diff options
author | Sravan Kumar Lakkimsetti | 2019-03-04 11:59:34 +0000 |
---|---|---|
committer | Sravan Kumar Lakkimsetti | 2019-03-04 12:00:55 +0000 |
commit | 41110ecf825e668add9f63b36c73139a0a9c220d (patch) | |
tree | f84e949ead8a60486c86a02d3fd7ef4997821a3b /cje-production | |
parent | 6966312d82a5b358f2125610e792d892c6d0671f (diff) | |
download | eclipse.platform.releng.aggregator-41110ecf825e668add9f63b36c73139a0a9c220d.tar.gz eclipse.platform.releng.aggregator-41110ecf825e668add9f63b36c73139a0a9c220d.tar.xz eclipse.platform.releng.aggregator-41110ecf825e668add9f63b36c73139a0a9c220d.zip |
Bug 545018 - Create script to build basebuilder for use in build process
Change-Id: I98a5f051280be0a21313fecfc459162165e97145
Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'cje-production')
-rw-r--r-- | cje-production/buildproperties.txt | 19 | ||||
-rwxr-xr-x | cje-production/master-build.sh | 7 | ||||
-rwxr-xr-x | cje-production/mbscripts/mb010_createEnvfiles.sh | 8 | ||||
-rwxr-xr-x | cje-production/mbscripts/mb020_createBaseBuilder.sh | 43 | ||||
-rwxr-xr-x | cje-production/mbscripts/mb100_cloneRepos.sh | 2 | ||||
-rwxr-xr-x | cje-production/mbscripts/mb200_createSourceBundles.sh | 4 | ||||
-rwxr-xr-x | cje-production/mbscripts/mb210_updatePom.sh | 8 | ||||
-rwxr-xr-x | cje-production/mbscripts/mb220_buildSdkPatch.sh | 6 |
8 files changed, 77 insertions, 20 deletions
diff --git a/cje-production/buildproperties.txt b/cje-production/buildproperties.txt index 59f5a432c..482ed7c38 100644 --- a/cje-production/buildproperties.txt +++ b/cje-production/buildproperties.txt @@ -29,7 +29,6 @@ aggDir="gitCache/eclipse.platform.releng.aggregator" REPO_AND_ACCESS="ssh://genie.releng@git.eclipse.org:29418" AGGREGATOR_REPO="ssh://genie.releng@git.eclipse.org:29418/platform/eclipse.platform.releng.aggregator.git" MAVEN_OPTS="-Xms2048m -Xmx5120m -Djava.io.tmpdir=/shared/eclipse/builds/4I/tmp -Dtycho.localArtifacts=ignore " -BASEBUILDER_TAG="4.9" B_GIT_EMAIL="genie.releng@eclipse.org" B_GIT_NAME="Releng HIPP" COMMITTER_ID="genie.releng" @@ -40,7 +39,21 @@ MAVEN_BREE="-Pbree-libs" GIT_PUSH="git push" LOCAL_REPO="localMavenRepo" SCRIPT_PATH="." -JAVA_DOC_TOOL="-Declipse.javadoc=/shared/common/jdk1.8.0_x64-latest/bin/javadoc" +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"
\ No newline at end of file +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="https://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/master-build.sh b/cje-production/master-build.sh index 7221d5ce2..059e38227 100755 --- a/cje-production/master-build.sh +++ b/cje-production/master-build.sh @@ -13,11 +13,12 @@ # Sravan Kumar Lakkimsetti - initial API and implementation #******************************************************************************* -source $WORKSPACE/cje-production/scripts/common-functions.shsource +CJE_ROOT=${CJE_ROOT:-`pwd`} +source $CJE_ROOT/scripts/common-functions.shsource pushd mbscripts for i in $(ls | sort) do - fn-run-command ./$i $WORKSPACE/cje-production/buildproperties.shsource + fn-run-command ./$i $CJE_ROOT/buildproperties.shsource done -popd
\ No newline at end of file +popd diff --git a/cje-production/mbscripts/mb010_createEnvfiles.sh b/cje-production/mbscripts/mb010_createEnvfiles.sh index b025c66b0..eb6228d33 100755 --- a/cje-production/mbscripts/mb010_createEnvfiles.sh +++ b/cje-production/mbscripts/mb010_createEnvfiles.sh @@ -19,7 +19,7 @@ if [ $# -ne 1 ]; then exit 1 fi -source $WORKSPACE/cje-production/scripts/common-functions.shsource +source $CJE_ROOT/scripts/common-functions.shsource shEnvFile=$(basename $1) buildDir=$(dirname $1) @@ -27,9 +27,9 @@ baseEnvFile=$(echo $shEnvFile |cut -d. -f1) phpEnvFile=$(echo $baseEnvFile.php) propEnvFile=$(echo $baseEnvFile.properties) -BUILD_ENV_FILE=$WORKSPACE/cje-production/${shEnvFile} -BUILD_ENV_FILE_PHP=$WORKSPACE/cje-production/${phpEnvFile} -BUILD_ENV_FILE_PROP=$WORKSPACE/cje-production/${propEnvFile} +BUILD_ENV_FILE=$CJE_ROOT/${shEnvFile} +BUILD_ENV_FILE_PHP=$CJE_ROOT/${phpEnvFile} +BUILD_ENV_FILE_PROP=$CJE_ROOT/${propEnvFile} fn-addToPropFiles () { diff --git a/cje-production/mbscripts/mb020_createBaseBuilder.sh b/cje-production/mbscripts/mb020_createBaseBuilder.sh new file mode 100755 index 000000000..f48714d7b --- /dev/null +++ b/cje-production/mbscripts/mb020_createBaseBuilder.sh @@ -0,0 +1,43 @@ +#!/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: +# Sravan Lakkimsetti - 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 + +qualifiedBaseBuilder="$CJE_ROOT/$BASEBUILDER_DIR" +TMP="$CJE_ROOT/$BASEBUILDER_DIR/tmp" +mkdir -p $TMP +pushd $TMP +wget -O eclipsePlatform.tar.gz https://$ARCHIVE_HOST/eclipse/downloads/drops4/$PREVIOUS_RELEASE_ID/eclipse-platform-${PREVIOUS_RELEASE_VER}-linux-gtk-x86_64.tar.gz&r=1 +tar zxf eclipsePlatform.tar.gz +popd + +${TMP}/eclipse/eclipse -nosplash \ + -debug -consolelog -data ${TMP}/workspace-toolsinstall \ + -application org.eclipse.equinox.p2.director \ + -repository \ + ${ECLIPSE_RUN_REPO},${BUILDTOOLS_REPO},${WEBTOOLS_REPO} \ + -installIU \ + org.eclipse.platform.ide,org.eclipse.pde.api.tools,org.eclipse.releng.build.tools.feature.feature.group,org.eclipse.wtp.releng.tools.feature.feature.group/${WEBTOOLS_VER},org.apache.derby.core.feature.feature.group \ + -destination \ + ${qualifiedBaseBuilder} \ + -profile \ + SDKProfile diff --git a/cje-production/mbscripts/mb100_cloneRepos.sh b/cje-production/mbscripts/mb100_cloneRepos.sh index 59a50212e..de3525ade 100755 --- a/cje-production/mbscripts/mb100_cloneRepos.sh +++ b/cje-production/mbscripts/mb100_cloneRepos.sh @@ -19,7 +19,7 @@ if [ $# -ne 1 ]; then exit 1 fi -source $WORKSPACE/cje-production/scripts/common-functions.shsource +source $CJE_ROOT/scripts/common-functions.shsource source $1 git clone -b $BRANCH --recursive $GIT_ROOT$AGG_REPO ../$AGG_DIR diff --git a/cje-production/mbscripts/mb200_createSourceBundles.sh b/cje-production/mbscripts/mb200_createSourceBundles.sh index e59b3531c..5a63bd39b 100755 --- a/cje-production/mbscripts/mb200_createSourceBundles.sh +++ b/cje-production/mbscripts/mb200_createSourceBundles.sh @@ -19,8 +19,8 @@ if [ $# -ne 1 ]; then exit 1 fi -source $WORKSPACE/cje-production/scripts/common-functions.shsource +source $CJE_ROOT/scripts/common-functions.shsource source $1 -cd $WORKSPACE/cje-production/gitCache/eclipse.platform.releng.aggregator +cd $CJE_ROOT/gitCache/eclipse.platform.releng.aggregator mvn clean verify -f eclipse-platform-sources/pom.xml -DbuildId=$BUILD_ID
\ No newline at end of file diff --git a/cje-production/mbscripts/mb210_updatePom.sh b/cje-production/mbscripts/mb210_updatePom.sh index 9176f627c..1d9146d6b 100755 --- a/cje-production/mbscripts/mb210_updatePom.sh +++ b/cje-production/mbscripts/mb210_updatePom.sh @@ -19,15 +19,15 @@ if [ $# -ne 1 ]; then exit 1 fi -source $WORKSPACE/cje-production/scripts/common-functions.shsource +source $CJE_ROOT/scripts/common-functions.shsource source $1 -mkdir $WORKSPACE/cje-production/tmp +mkdir $CJE_ROOT/tmp -cd $WORKSPACE/cje-production/gitCache/eclipse.platform.releng.aggregator +cd $CJE_ROOT/gitCache/eclipse.platform.releng.aggregator mvn --update-snapshots org.eclipse.tycho:tycho-versions-plugin:1.3.0:update-pom \ -Dmaven.repo.local=$LOCAL_REPO \ - -Djava.io.tmpdir=$WORKSPACE/cje-production/tmp \ + -Djava.io.tmpdir=$CJE_ROOT/tmp \ -DaggregatorBuild=true \ -DbuildTimestamp=$TIMESTAMP \ -DbuildType=$BUILD_TYPE \ diff --git a/cje-production/mbscripts/mb220_buildSdkPatch.sh b/cje-production/mbscripts/mb220_buildSdkPatch.sh index 8f93550f2..6212a100d 100755 --- a/cje-production/mbscripts/mb220_buildSdkPatch.sh +++ b/cje-production/mbscripts/mb220_buildSdkPatch.sh @@ -19,16 +19,16 @@ if [ $# -ne 1 ]; then exit 1 fi -source $WORKSPACE/cje-production/scripts/common-functions.shsource +source $CJE_ROOT/scripts/common-functions.shsource source $1 -cd $WORKSPACE/cje-production/gitCache/eclipse.platform.releng.aggregator +cd $CJE_ROOT/gitCache/eclipse.platform.releng.aggregator mvn clean verify -DskipTests=true -Pbree-libs \ -Dtycho.debug.artifactcomparator \ -Dcbi.jarsigner.continueOnFail=true \ -Djgit.dirtyWorkingTree=error \ -Dmaven.repo.local=$LOCAL_REPO \ - -Djava.io.tmpdir=$WORKSPACE/cje-production/tmp \ + -Djava.io.tmpdir=$CJE_ROOT/tmp \ -DaggregatorBuild=true \ -DbuildTimestamp=$TIMESTAMP \ -DbuildType=$BUILD_TYPE \ |