feat: .devops/mindspore-pr-CI.yml
This commit is contained in:
parent
f793a959dd
commit
f503b11f9a
|
@ -0,0 +1,50 @@
|
|||
version: 2
|
||||
name: mindspore-pr-CI
|
||||
description: ""
|
||||
global:
|
||||
concurrent: 1
|
||||
trigger:
|
||||
webhook: gitlink@1.0.0
|
||||
event:
|
||||
- ref: pr
|
||||
ruleset:
|
||||
- param-ref: action
|
||||
operator: EQ
|
||||
value: "'opened'"
|
||||
ruleset-operator: AND
|
||||
workflow:
|
||||
- ref: start
|
||||
name: 开始
|
||||
task: start
|
||||
- ref: shell_0
|
||||
name: shell
|
||||
on-failure: ignore
|
||||
image: zhangxunhui/mindspore-testcases:0.1.2
|
||||
needs:
|
||||
- start
|
||||
- ref: shell_1
|
||||
name: shell
|
||||
on-failure: ignore
|
||||
image: zhangxunhui/mindspore-cla:0.0.1
|
||||
needs:
|
||||
- start
|
||||
- ref: dingtalk_notice_text_0
|
||||
name: 钉钉通知-文本
|
||||
task: dingtalk_notice_text@1.0.2
|
||||
input:
|
||||
boot_webhook_url: ((ding_notice.webhook))
|
||||
secret: ((ding_notice.secret))
|
||||
msg_text: 'shell_1.inner.execution_status === "EXECUTION_SUCCEEDED" &&
|
||||
shell_0.inner.execution_status === "EXECUTION_SUCCEEDED" ? "CI执行成功" :
|
||||
"CI执行失败"'
|
||||
at_user_ids: '"[]"'
|
||||
at_mobiles: '"[13272099438]"'
|
||||
needs:
|
||||
- shell_0
|
||||
- shell_1
|
||||
- ref: end
|
||||
name: 结束
|
||||
task: end
|
||||
needs:
|
||||
- dingtalk_notice_text_0
|
||||
|
Loading…
Reference in New Issue