mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
[releng] Report more than one failed bundle per invocation
List as many as possible of the failed bundles when doing the baseline compare. Change-Id: I0d2817c418cf865f7fc6ea1c7e25d5b3b7b41bd5 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
This commit is contained in:
parent
b8ba9605c6
commit
0429be17e1
1 changed files with 20 additions and 8 deletions
|
@ -61,21 +61,30 @@ echo "Running 'mvn verify -P baseline-compare-and-replace' to make sure all vers
|
||||||
echo "have been appropriately incremented. The check output is very verbose, so it is"
|
echo "have been appropriately incremented. The check output is very verbose, so it is"
|
||||||
echo "redirected to ${logfile} which is archived as part of the build artifacts."
|
echo "redirected to ${logfile} which is archived as part of the build artifacts."
|
||||||
if ${MVN:-mvn} \
|
if ${MVN:-mvn} \
|
||||||
clean verify -B -V \
|
clean verify -B -V --fail-at-end \
|
||||||
-DskipDoc=true \
|
-DskipDoc=true \
|
||||||
-DskipTests=true \
|
-DskipTests=true \
|
||||||
-P baseline-compare-and-replace >${logfile} 2>&1; then
|
-P baseline-compare-and-replace >${logfile} 2>&1; then
|
||||||
echo "Maven check all versions have been bumped appropriately appears to have completed successfully"
|
echo "Maven check all versions have been bumped appropriately appears to have completed successfully"
|
||||||
else
|
else
|
||||||
if grep "Only qualifier changed" ${logfile} > /dev/null; then
|
bundles_only_qualifier_changed=$(grep "Only qualifier changed" ${logfile} | sed -e 's/^.*Only qualifier changed for .//' -e 's@/.*@@')
|
||||||
bundle=$(grep "Only qualifier changed" ${logfile} | sed -e 's/^.*Only qualifier changed for .//' -e 's@/.*@@')
|
if [ -n "$bundles_only_qualifier_changed" ]; then
|
||||||
echo "Bundle '${bundle}' is missing a service segment version bump"
|
echo "The following bundles are missing a service segment version bump:"
|
||||||
|
for bundle in $bundles_only_qualifier_changed; do
|
||||||
|
echo " - $bundle"
|
||||||
|
done
|
||||||
echo "Please bump service segment by 100 if on master branch"
|
echo "Please bump service segment by 100 if on master branch"
|
||||||
echo "The log of this build is part of the artifacts"
|
echo "The log of this build is part of the artifacts"
|
||||||
echo "See: https://wiki.eclipse.org/Version_Numbering#When_to_change_the_service_segment"
|
echo "See: https://wiki.eclipse.org/Version_Numbering#When_to_change_the_service_segment"
|
||||||
elif grep "baseline and build artifacts have same version but different contents" ${logfile} > /dev/null; then
|
echo
|
||||||
bundle=$(grep "baseline and build artifacts have same version but different contents" ${logfile} | sed -e 's/^.* on project //' -e 's@: baseline@@')
|
fi
|
||||||
echo "Bundle '${bundle}' has same version as baseline, but different contents"
|
|
||||||
|
bundles_same_version_different_content=$(grep "baseline and build artifacts have same version but different contents" ${logfile} | sed -e 's/^.* on project //' -e 's@: baseline.*@@')
|
||||||
|
if [ -n "$bundles_same_version_different_content" ]; then
|
||||||
|
echo "The following bundles have same version as baseline, but different contents:"
|
||||||
|
for bundle in $bundles_same_version_different_content; do
|
||||||
|
echo " - $bundle"
|
||||||
|
done
|
||||||
echo "This can happen for a variety of reasons:"
|
echo "This can happen for a variety of reasons:"
|
||||||
echo " - The comparison filters in the root pom.xml are not working"
|
echo " - The comparison filters in the root pom.xml are not working"
|
||||||
echo " - Different versions of Java are being used to compile compared to the baseline"
|
echo " - Different versions of Java are being used to compile compared to the baseline"
|
||||||
|
@ -83,7 +92,10 @@ else
|
||||||
echo "The log of this build is part of the artifacts"
|
echo "The log of this build is part of the artifacts"
|
||||||
echo "Please bump service segment by 100 if on master branch"
|
echo "Please bump service segment by 100 if on master branch"
|
||||||
echo "See: https://wiki.eclipse.org/Version_Numbering#When_to_change_the_service_segment"
|
echo "See: https://wiki.eclipse.org/Version_Numbering#When_to_change_the_service_segment"
|
||||||
else
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$bundles_only_qualifier_changed" ] && [ -z "$bundles_same_version_different_content" ]; then
|
||||||
echo "Maven 'check all versions have been bumped appropriately' failed! Please see the"
|
echo "Maven 'check all versions have been bumped appropriately' failed! Please see the"
|
||||||
echo "log of the failed maven run which is available as part of the artifacts in a"
|
echo "log of the failed maven run which is available as part of the artifacts in a"
|
||||||
echo "file called baseline-compare-and-replace.log"
|
echo "file called baseline-compare-and-replace.log"
|
||||||
|
|
Loading…
Add table
Reference in a new issue