diff options
-rwxr-xr-x | releng/org.eclipse.epp.config/tools/createSettings.sh | 49 |
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 |