Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcje-production/scripts/checkComposites/checkComposites.sh57
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
+

Back to the top