mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 04:40:05 -06:00
Merge pull request #8866 from owncloud/drone/chat-notifications
[tests-only][full-ci]send nightly notification to builds channel
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user