fix(common): fixes triggering builds if no builds to start

If the PR only contains files that we ignore, we previously failed to
finish the trigger build. This PR fixes the problem.

The problem can be observed in #14271 which only changed a file in
`resources/teamcity/common` which gets ignored in `find_platform_changes`.

Test-bot: skip
This commit is contained in:
Eberhard Beilharz 2025-07-03 21:07:45 +02:00
parent 6f7c21867e
commit cbcbae473e
No known key found for this signature in database
GPG key ID: E9140597606020D3

View file

@ -259,7 +259,7 @@ fi
# Start test builds as required
#
if (( ${#build_platforms[@]} > 0)); then
if [[ ! -z ${build_platforms:-} ]] && (( ${#build_platforms[@]:-0} > 0)); then
builder_echo heading "Start test builds"
triggerTestBuilds build_platforms $PRNUM
else