devops - drone test failure build
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mahdi Abu Yasmine 2023-12-16 00:22:32 +01:00
parent 03921aeb45
commit 209d955a29

View File

@ -44,7 +44,6 @@ steps:
from_secret: ZULIP_TOKEN
commands:
- apk add --no-cache curl
- printenv
- export ZULIP_STATUS=":prohibited:"
- export ZULIP_MESSAGE=$${DRONE_COMMIT_MESSAGE:-2}
- export SHORT_COMMIT=$${DRONE_COMMIT:0:7}
@ -52,7 +51,7 @@ steps:
- export REMOTE_URL=$${DRONE_REMOTE_URL:0:-4}
- export ZULIP_FAILED_STEPS=$${DRONE_FAILED_STEPS}
- export FLAG_FAIL=":triangular_flag:"
- curl -s -X POST "$ZULIP_HOST/api/v1/messages" -u "$ZULIP_USER:$ZULIP_TKN" --data-urlencode "type=stream" --data-urlencode "to=\"$ZULIP_STREAM\"" --data-urlencode "topic=$ZULIP_TOPIC" --data "content=$ZULIP_STATUS **[build %23${DRONE_BUILD_NUMBER}](${DRONE_BUILD_LINK})**%0A> **${DRONE_BUILD_EVENT}** event on **${DRONE_COMMIT_BRANCH}** branch *by* **${DRONE_COMMIT_AUTHOR}** ([$SHORT_COMMIT]($REMOTE_URL/commit/${DRONE_COMMIT}))%0A> $ZULIP_MESSAGE%0A> $FLAG_FAIL ***failed at step $ZULIP_FAILED_STEPS*** "
- curl -s -X POST "$ZULIP_HOST/api/v1/messages" -u "$ZULIP_USER:$ZULIP_TKN" --data-urlencode "type=stream" --data-urlencode "to=\"$ZULIP_STREAM\"" --data-urlencode "topic=$ZULIP_TOPIC" --data "content=$ZULIP_STATUS **[build %23${DRONE_BUILD_NUMBER}](${DRONE_BUILD_LINK})**%0A> **${DRONE_BUILD_EVENT}** event on **${DRONE_COMMIT_BRANCH}** branch *by* **${DRONE_COMMIT_AUTHOR}** ([$SHORT_COMMIT]($REMOTE_URL/commit/${DRONE_COMMIT}))%0A> $ZULIP_MESSAGE%0A> $FLAG_FAIL ***failed at step*** $ZULIP_FAILED_STEPS"
when:
status:
- failure
@ -70,7 +69,6 @@ steps:
from_secret: ZULIP_TOKEN
commands:
- apk add --no-cache curl
- printenv
- export ZULIP_STATUS=":check:"
- export ZULIP_MESSAGE=$${DRONE_COMMIT_MESSAGE:-2}
- export SHORT_COMMIT=$${DRONE_COMMIT:0:7}