notify chat on nightly success also (#8832)
This commit is contained in:
+7
-5
@@ -289,7 +289,7 @@ def main(ctx):
|
||||
# always append notification step
|
||||
pipelines.append(
|
||||
pipelineDependsOn(
|
||||
notify(),
|
||||
notify(ctx),
|
||||
pipelines,
|
||||
),
|
||||
)
|
||||
@@ -1956,7 +1956,11 @@ def makeGoGenerate(module):
|
||||
},
|
||||
]
|
||||
|
||||
def notify():
|
||||
def notify(ctx):
|
||||
status = ["failure"]
|
||||
if ctx.build.event == "cron":
|
||||
status.append("success")
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -1983,9 +1987,7 @@ def notify():
|
||||
"refs/heads/release*",
|
||||
"refs/tags/**",
|
||||
],
|
||||
"status": [
|
||||
"failure",
|
||||
],
|
||||
"status": status,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user