diff options
author | Sravan Kumar Lakkimsetti | 2019-11-04 09:43:31 +0000 |
---|---|---|
committer | Sravan Kumar Lakkimsetti | 2019-11-04 09:43:31 +0000 |
commit | 9d8237b5b02ae4ad9d8b0c44dd4853872e9a1112 (patch) | |
tree | db959601b140f90263fb36a5f30f095982757957 | |
parent | 98d2b229f947f419f7c695cd7f9c8004e4115194 (diff) | |
download | eclipse.platform.releng.aggregator-9d8237b5b02ae4ad9d8b0c44dd4853872e9a1112.tar.gz eclipse.platform.releng.aggregator-9d8237b5b02ae4ad9d8b0c44dd4853872e9a1112.tar.xz eclipse.platform.releng.aggregator-9d8237b5b02ae4ad9d8b0c44dd4853872e9a1112.zip |
Bug 552656 - Migrate check compisites script
Change-Id: Ia3c0a1dab4bafef04aba196e178fa57aa7715ea6
Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rwxr-xr-x | cje-production/scripts/checkComposites/checkComposites.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/cje-production/scripts/checkComposites/checkComposites.sh b/cje-production/scripts/checkComposites/checkComposites.sh new file mode 100755 index 000000000..523f1d9ac --- /dev/null +++ b/cje-production/scripts/checkComposites/checkComposites.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +#******************************************************************************* +# 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 +#******************************************************************************* + +# Utility to run on Hudson, to periodically confirm that our +# atomic composite repositories are valid. + +# can be retrieved, on Hudson, with +# wget --no-verbose --no-cache -O checkComposites.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/production/miscToolsAndNotes/checkComposites/checkComposites.sh; +# and typically set chmod +x checkComposites.sh +# and then executed in "bash script" build step. + +dropsPath=/home/data/httpd/download.eclipse.org/eclipse/downloads/drops4 +repoHttpAccess=http://download.eclipse.org +repoAccess=${repoHttpAccess} +# TODO: reduce this list soon +repoList="\ +/eclipse/updates/4.13/ \ +/eclipse/updates/4.14/ \ +/eclipse/updates/4.14-I-builds/ \ +/eclipse/updates/4.14milestones/ \ +/eclipse/updates/4.13-Y-builds/ \ +/eclipse/updates/4.13-P-builds/ \ +" + + +# Confirm that Eclipse Platform has already been installed, if not, install it +if [[ ! -d ${WORKSPACE}/eclipse ]] +then + epRelDir=$(ssh genie.releng@projects-storage.eclipse.org ls -d --format=single-column ${dropsPath}/R-*|sort|tail -1) + scp genie.releng@projects-storage.eclipse.org:${epRelDir}/eclipse-platform-*-linux-gtk-x86_64.tar.gz . + tar -xzf eclipse-platform-*-linux-gtk-x86_64.tar.gz -C ${WORKSPACE} +fi + +for repo in ${repoList} +do + echo -e "\n\n\tChecking repo:\n\t\t ${repoAccess}${repo}\n\n" + nice -n 10 ${WORKSPACE}/eclipse/eclipse -nosplash -consolelog --launcher.suppressErrors -application org.eclipse.equinox.p2.director -repository ${repoAccess}${repo} -list -vm /opt/tools/java/oracle/jdk-8/latest/bin/java + RC=$? + if [[ $RC != 0 ]] + then + echo -e "\n\t[ERROR]: p2.director list returned a non-zero return code: $RC" + exit $RC + fi +done + |