From 18da18adf9f09eed788301f771442d4feff5a770 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 30 Mar 2023 10:05:11 +0800 Subject: [PATCH] refactor: .devops/build_and_check.yml --- .devops/build_and_check.yml | 70 +++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/.devops/build_and_check.yml b/.devops/build_and_check.yml index 1ce3a958819..86ef88c6fb7 100644 --- a/.devops/build_and_check.yml +++ b/.devops/build_and_check.yml @@ -21,13 +21,6 @@ workflow: task: end needs: - dingtalk_notice_text_0 - - ref: shell_0 - name: 安装依赖包 - image: docker.jianmuhub.com/library/alpine:3.17.0 - script: - - echo "success" - needs: - - git_clone_0 - ref: git_clone_0 name: git clone task: git_clone@1.2.6 @@ -38,32 +31,6 @@ workflow: depth: 1 needs: - start - - ref: shell_1 - name: 检测代码 - image: docker.jianmuhub.com/library/alpine:3.17.0 - script: - - sh ../check_code.sh - 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: '""' - at_user_ids: '"[]"' - at_mobiles: '"[]"' - needs: - - ssh_cmd_0 - - ref: shell_2 - name: 打包完成 - image: docker.jianmuhub.com/library/alpine:3.17.0 - script: - - echo "build success" - needs: - - shell_1 - - shell_0 - ref: scp_resource_0 name: scp发布到服务器 task: scp_resource@1.4.1 @@ -75,7 +42,7 @@ workflow: local_file: '""' file_content: '""' needs: - - shell_2 + - number_1 - ref: ssh_cmd_0 name: 执行发布命令 task: ssh_cmd@1.1.1 @@ -86,4 +53,39 @@ workflow: 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