Files

13 lines
767 B
Bash
Executable File

#!/usr/bin/env bash
# Bump only one of the two version numbers and capture what the config server says. Writes output/10-half-upgrades.txt
MOD=$(cd "$(dirname "$0")/.." && pwd); cd "$MOD" || exit 1
unset JAVA_TOOL_OPTIONS
F=output/10-half-upgrades.txt; : > $F
for pair in "shopbootonly Boot 4.2.0 with Spring Cloud 2025.1.5" "shopcloudonly Boot 4.1.3 with Spring Cloud 2026.0.0"; do
read -r dir title <<<"$pair"
mkdir -p run/$dir/run/logs
(cd run/$dir && timeout 60 java -Xmx200m -jar config-server/target/config-server-1.0.0.jar > run/logs/config-server.log 2>&1)
{ echo "=== $title"; sed -n '/APPLICATION FAILED TO START/,/spring.cloud.compatibility-verifier.enabled=false/p' run/$dir/run/logs/config-server.log | grep -v '^\s*$'; echo; } >> $F
done
cat $F