From 52640844f77226d3f5aa6e1b3585798703db1ba9 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 1 Dec 2021 11:23:38 +0900 Subject: [PATCH] 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()'. --- buildbot.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -- 2.47.3