mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 21:00:30 -06:00
send nightly notification to builds channel
This commit is contained in:
@@ -144,6 +144,7 @@ config = {
|
||||
},
|
||||
"rocketchat": {
|
||||
"channel": "infinitescale",
|
||||
"channel_builds": "builds",
|
||||
"from_secret": "rocketchat_talk_webhook",
|
||||
},
|
||||
"binaryReleases": {
|
||||
@@ -1911,8 +1912,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_builds"]
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
@@ -1929,7 +1932,7 @@ def notify(ctx):
|
||||
"webhook": {
|
||||
"from_secret": config["rocketchat"]["from_secret"],
|
||||
},
|
||||
"channel": config["rocketchat"]["channel"],
|
||||
"channel": channel,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user