From cb712c181adceea0f40a696dc9ba34d9c626deb2 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 5 Feb 2026 13:27:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=957?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_api.drone.yml | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/irc_api.drone.yml b/irc_api.drone.yml index f82253648..02a348aa2 100644 --- a/irc_api.drone.yml +++ b/irc_api.drone.yml @@ -20,34 +20,15 @@ steps: commands: - bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh || echo "publish failed" - - name: notify-wecom - commands: - - | - STATUS="$DRONE_BUILD_STATUS" +- name: notify-wecom + commands: + - bash /opt/1panel/xc-deploy-new/devops-center/notify-wecom.sh "$DRONE_BUILD_STATUS" "$DRONE_REPO_NAME" "$DRONE_BRANCH" "$DRONE_BUILD_NUMBER" "cdd97aab-d256-4f07-9145-a0a2b1555322" + when: + status: + - success + - failure - if [ "$STATUS" = "success" ]; then - MSG="🟢 Test_HIR 发布成功" - COLOR="info" - else - MSG="🔴 Test_HIR 发布失败" - COLOR="warning" - fi - - curl -s -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \ - -H "Content-Type: application/json" \ - --data-binary @- < 项目:${DRONE_REPO_NAME}\n> 分支:${DRONE_BRANCH}\n> 构建号:${DRONE_BUILD_NUMBER}\n> 状态:${STATUS}" - } -} -EOF - when: - status: - - success - - failure trigger: branch: - - Test_HIR_Net8 \ No newline at end of file + - Test_HIR_Net8