From: Matthias Kruk Date: Wed, 1 Dec 2021 02:23:38 +0000 (+0900) Subject: buildbot: Pass correct parameters when sending build message X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=52640844f77226d3f5aa6e1b3585798703db1ba9;p=foundry buildbot: Pass correct parameters when sending build message When sending build messages, buildbot does not pass the correct parameters to `foundry_msg_build_new()', causing missing data in the messages. This commit modifies buildbot so that it passes the correct number of parameters in the correct order to `foundry_msg_build_new()'. --- diff --git a/buildbot.sh b/buildbot.sh index b4ecd0a..4cd131a 100755 --- a/buildbot.sh +++ b/buildbot.sh @@ -72,9 +72,16 @@ send_build_notification() { local result="$7" local buildmsg + local artifacts - if ! buildmsg=$(foundry_msg_build_new "$context" "$repository" \ - "$branch" "$result"); then + artifacts=() + + if ! buildmsg=$(foundry_msg_build_new "$context" \ + "$repository" \ + "$branch" \ + "$ref" \ + "$result" \ + artifacts); then log_error "Could not make build message" return 1 fi