Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2020-10-15 18:21:46 +0000
committerJonah Graham2020-10-15 18:21:46 +0000
commit54738878694ce82a4489705569e199be4635745a (patch)
tree63c91601108ead38fb85c4ef0d55c3f900fe13ea
parente35564ca2c43ae9c72219df6a35d981f36ea7e1d (diff)
downloadorg.eclipse.epp.packages-jonah/bug_567912.tar.gz
org.eclipse.epp.packages-jonah/bug_567912.tar.xz
org.eclipse.epp.packages-jonah/bug_567912.zip
force just one packagejonah/bug_567912
-rwxr-xr-xreleng/org.eclipse.epp.config/tools/createSettings.sh49
1 files changed, 1 insertions, 48 deletions
diff --git a/releng/org.eclipse.epp.config/tools/createSettings.sh b/releng/org.eclipse.epp.config/tools/createSettings.sh
index 5cd4ea53..a825e329 100755
--- a/releng/org.eclipse.epp.config/tools/createSettings.sh
+++ b/releng/org.eclipse.epp.config/tools/createSettings.sh
@@ -58,55 +58,8 @@ echo " <activeProfiles>" >>$SETTINGS_FILE
PACKAGES="${IGNORED_PACKAGES}"
-### use the HEAD commit to find out which package directories contain a change
-cd ${WORKSPACE}/${GIT_REPOSITORY}
-for II in `git diff-tree --name-only --no-commit-id -r HEAD | cut -d "/" -f 2 | cut -d "." -f 5 | sort | uniq`; do
- if [[ "common" == ${II} ]]
- then
- echo "Change detected in common bundles found; will trigger a full package build."
- FULL_BUILD="true"
- continue
- fi
- if [[ ${IGNORED_PACKAGES} =~ ${II} ]]
- then
- echo "${II} contains changes, but is ignored or already added."
- continue
- fi
- PACKAGE="epp.package.${II}"
- echo "Adding package $PACKAGE"
- echo " <activeProfile>${PACKAGE}</activeProfile>" >>$SETTINGS_FILE
- PACKAGES="${PACKAGES} ${PACKAGE}"
-done
-cd ${WORKSPACE}
+echo " <activeProfile>epp.package.testing</activeProfile>" >>$SETTINGS_FILE
-### if there are changes in other areas of the Git repo then build everything
-cd ${WORKSPACE}/${GIT_REPOSITORY}
-OTHERCHANGES="xxx`git diff-tree --name-only --no-commit-id -r HEAD | grep -v "^packages"`xxx"
-if [ "${OTHERCHANGES}" != "xxxxxx" ] || [ "${FULL_BUILD}" == "true" ]
-then
- echo "Full build required. Adding all packages"
- ALLPACKAGES="xxx `ls packages | cut -d "." -f 5 | sort | uniq` xxx"
- for II in ${ALLPACKAGES}; do
- if [[ "xxx" == ${II} ]]
- then
- continue
- fi
- if [[ "common" == ${II} ]]
- then
- continue
- fi
- if [[ ${PACKAGES} =~ "epp.package.${II} " ]]
- then
- echo "${II} should be added for all packages, but it is ignored or already added."
- continue
- else
- PACKAGE="epp.package.${II}"
- echo "Adding package $PACKAGE"
- echo " <activeProfile>${PACKAGE}</activeProfile>" >>$SETTINGS_FILE
- PACKAGES="${PACKAGES} ${PACKAGE}"
- fi
- done
-fi
cd ${WORKSPACE}
### close the settings.xml file

Back to the top