步骤之间无法传递变量,去掉部署时间, 增加部署域名
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
1b1a18bac8
commit
0db495a38a
|
|
@ -18,17 +18,10 @@ server:
|
||||||
steps:
|
steps:
|
||||||
- name: publish-test-hir
|
- name: publish-test-hir
|
||||||
commands:
|
commands:
|
||||||
- START=$(date +%s)
|
|
||||||
- bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-publish.sh
|
- 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
|
- name: notify-wecom
|
||||||
commands:
|
commands:
|
||||||
- MIN=$((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"
|
||||||
- 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:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue