From 1b1a18bac889a842108d45209016018bb9a7d809 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 5 Feb 2026 15:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E8=AE=B0=E5=BD=95=E6=89=93?= =?UTF-8?q?=E5=8C=85=E9=83=A8=E7=BD=B2=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_api.drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/irc_api.drone.yml b/irc_api.drone.yml index 4c94589f7..97b5c2332 100644 --- a/irc_api.drone.yml +++ b/irc_api.drone.yml @@ -18,10 +18,17 @@ server: steps: - name: publish-test-hir commands: + - START=$(date +%s) - bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-publish.sh + - END=$(date +%s) + - ELAPSED=$((END-START)) + environment: + STEP1_ELAPSED: $ELAPSED - 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" "4355b98e-1e72-4678-8dfb-2fc6ad0bf449" "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" + - MIN=$((STEP1_ELAPSED / 60)) + - SEC=$((STEP1_ELAPSED % 60)) + - bash /opt/1panel/xc-deploy-new/devops-center/notify-wecom.sh "$DRONE_BUILD_STATUS" "hir.test.extimaging.com" "$DRONE_BRANCH" "$DRONE_BUILD_NUMBER" "4355b98e-1e72-4678-8dfb-2fc6ad0bf449" "$DRONE_COMMIT_MESSAGE" "$DRONE_COMMIT_AUTHOR" "${MIN}分${SEC}秒" when: status: - success