Define start fedmsg json value
The nightly scripts try to send an announcement about compose starting. As this happens before Pungi even started, the compose ID is not known and can not be included in the message. The message about starting rsync sent later will contain the ID correctly. Without the json defined there is a traceback in the cron output, but the errors are not logged anywhere else (but don't actually block anything in the compose process). Relates: https://pagure.io/pungi/issue/698 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
35da085039
commit
4f15d62cdd
@ -40,6 +40,7 @@ FEDMSG_CERTPREFIX="releng"
|
||||
. ./releng/scripts/fedmsg-functions.sh
|
||||
|
||||
# Announce that we are starting, even though we don't know the compose_id yet..
|
||||
fedmsg_json_start=$(printf '{"log": "start", "branch": "%s", "arch": "%s"}' "$BRANCHED" "$ARCH")
|
||||
send_fedmsg "${fedmsg_json_start}" ${DIST} start
|
||||
|
||||
CMD="pungi-koji --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $NIGHTLY $SKIP_PHASES"
|
||||
|
@ -42,6 +42,7 @@ FEDMSG_CERTPREFIX="releng"
|
||||
. ./releng/scripts/fedmsg-functions.sh
|
||||
|
||||
# Announce that we are starting, even though we don't know the compose_id yet..
|
||||
fedmsg_json_start=$(printf '{"log": "start", "branch": "%s", "arch": "%s"}' "$BRANCHED" "$ARCH")
|
||||
send_fedmsg "${fedmsg_json_start}" ${DIST} start
|
||||
|
||||
pushd $TMPDIR
|
||||
|
Loading…
Reference in New Issue
Block a user