Compare commits
No commits in common. "master" and "master" have entirely different histories.
|
@ -1,91 +0,0 @@
|
||||||
version: 2
|
|
||||||
name: build_and_check
|
|
||||||
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: end
|
|
||||||
name: 结束
|
|
||||||
task: end
|
|
||||||
needs:
|
|
||||||
- dingtalk_notice_text_0
|
|
||||||
- ref: git_clone_0
|
|
||||||
name: git clone
|
|
||||||
task: git_clone@1.2.6
|
|
||||||
input:
|
|
||||||
remote_url: '""'
|
|
||||||
ref: '"refs/heads/master"'
|
|
||||||
commit_id: '""'
|
|
||||||
depth: 1
|
|
||||||
needs:
|
|
||||||
- start
|
|
||||||
- ref: scp_resource_0
|
|
||||||
name: scp发布到服务器
|
|
||||||
task: scp_resource@1.4.1
|
|
||||||
input:
|
|
||||||
ssh_ip: '""'
|
|
||||||
ssh_port: '"22"'
|
|
||||||
ssh_user: '"root"'
|
|
||||||
remote_file: '""'
|
|
||||||
local_file: '""'
|
|
||||||
file_content: '""'
|
|
||||||
needs:
|
|
||||||
- number_1
|
|
||||||
- ref: ssh_cmd_0
|
|
||||||
name: 执行发布命令
|
|
||||||
task: ssh_cmd@1.1.1
|
|
||||||
input:
|
|
||||||
ssh_ip: '""'
|
|
||||||
ssh_port: '"22"'
|
|
||||||
ssh_user: '"root"'
|
|
||||||
ssh_cmd: '""'
|
|
||||||
needs:
|
|
||||||
- scp_resource_0
|
|
||||||
- ref: number_0
|
|
||||||
name: 代码检测
|
|
||||||
task: star/number@1.0.0-java11
|
|
||||||
input:
|
|
||||||
expression: '"6+2"'
|
|
||||||
needs:
|
|
||||||
- git_clone_0
|
|
||||||
- ref: number_1
|
|
||||||
name: 编译打包
|
|
||||||
task: star/number@1.0.0-java11
|
|
||||||
input:
|
|
||||||
expression: '""+((number_0.result))+ ((number_2.result))'
|
|
||||||
needs:
|
|
||||||
- number_0
|
|
||||||
- number_2
|
|
||||||
- ref: number_2
|
|
||||||
name: 安装依赖包
|
|
||||||
task: star/number@1.0.0-java11
|
|
||||||
input:
|
|
||||||
expression: '"7+2"'
|
|
||||||
needs:
|
|
||||||
- git_clone_0
|
|
||||||
- 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: '"【"+((trigger.user)) +
|
|
||||||
"】从"+((trigger.source_branch))+"提交PR到"+((trigger.target_branch)) +
|
|
||||||
",请您立即确认是否合并。"'
|
|
||||||
at_user_ids: '"[]"'
|
|
||||||
at_mobiles: '"[]"'
|
|
||||||
needs:
|
|
||||||
- ssh_cmd_0
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
version: 2
|
|
||||||
name: mindspore-ci-test
|
|
||||||
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_0.inner.execution_status === "EXECUTION_SUCCEEDED" &&
|
|
||||||
shell_1.inner.execution_status === "EXECUTION_SUCCEEDED" ? "CI build
|
|
||||||
success" : "CI build fail"'
|
|
||||||
at_user_ids: '"[]"'
|
|
||||||
at_mobiles: '"[13272099438]"'
|
|
||||||
needs:
|
|
||||||
- shell_0
|
|
||||||
- shell_1
|
|
||||||
- ref: end
|
|
||||||
name: 结束
|
|
||||||
task: end
|
|
||||||
needs:
|
|
||||||
- dingtalk_notice_text_0
|
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
version: 2
|
||||||
|
name: 新的PR提交通知
|
||||||
|
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: dingtalk_notice_text_0
|
||||||
|
name: 钉钉通知-文本
|
||||||
|
task: dingtalk_notice_text@1.0.2
|
||||||
|
input:
|
||||||
|
boot_webhook_url: ((dingdingtalk.token_url))
|
||||||
|
secret: ((dingdingtalk.serect))
|
||||||
|
msg_text: '"【"+((trigger.user)) +
|
||||||
|
"】从"+((trigger.source_branch))+"提交PR到"+((trigger.target_branch)) +
|
||||||
|
",请您立即确认是否合并。"'
|
||||||
|
at_user_ids: '"[]"'
|
||||||
|
at_mobiles: '"[]"'
|
||||||
|
needs:
|
||||||
|
- start
|
||||||
|
- ref: end
|
||||||
|
name: 结束
|
||||||
|
task: end
|
||||||
|
needs:
|
||||||
|
- dingtalk_notice_text_0
|
||||||
|
|
Loading…
Reference in New Issue