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()'.
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