Merge pull request #8866 from owncloud/drone/chat-notifications

[tests-only][full-ci]send nightly notification to builds channel
This commit is contained in:
Phil Davis
2024-04-16 21:57:51 +05:45
committed by GitHub

View File

@@ -153,6 +153,7 @@ config = {
},
"rocketchat": {
"channel": "infinitescale",
"channel_cron": "builds",
"from_secret": "rocketchat_talk_webhook",
},
"binaryReleases": {
@@ -1959,8 +1960,10 @@ def makeGoGenerate(module):
def notify(ctx):
status = ["failure"]
channel = config["rocketchat"]["channel"]
if ctx.build.event == "cron":
status.append("success")
channel = config["rocketchat"]["channel_cron"]
return {
"kind": "pipeline",
@@ -1977,7 +1980,7 @@ def notify(ctx):
"webhook": {
"from_secret": config["rocketchat"]["from_secret"],
},
"channel": config["rocketchat"]["channel"],
"channel": channel,
},
},
],