]> git.corax.cc Git - foundry/commitdiff
buildbot: Pass correct parameters when sending build message
authorMatthias Kruk <m@m10k.eu>
Wed, 1 Dec 2021 02:23:38 +0000 (11:23 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 1 Dec 2021 02:23:38 +0000 (11:23 +0900)
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

index b4ecd0a0ed9b4f74d0c9c649fa7c8925305c4067..4cd131a4ebae4591ae23514e6d57032acaf7732c 100755 (executable)
@@ -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