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

This commit is contained in:
Mahdi Abu Yasmine 2023-12-15 00:36:23 +01:00
parent 55ff2b1929
commit 81409c8af7

View File

@ -49,6 +49,18 @@ steps:
- apk add --no-cache openssh
- ssh -p21022 -o StrictHostKeyChecking=accept-new -i /root/.ssh/id_rsa.kubehost mtc@bosub-kub-int.metacoaching.pro "hostname"
volumes:
- name: deps
temp: {}
- name: ssh_key
host:
path: /home/repo/drone
---
kind: pipeline
name: after
steps:
- name: notify
image: bash:4.4
environment:
@ -70,7 +82,6 @@ steps:
- echo $ZULIP_STATUS
- echo $ZULIP_MESSAGE
- echo $REMOTE_URL
- echo "FAILED STEPS ${DRONE_FAILED_STEPS}"
- echo " ================================= "
- echo "DRONE_BUILD_ACTION ${DRONE_BUILD_ACTION}"
- echo "DRONE_BUILD_CREATED ${DRONE_BUILD_CREATED}"
@ -82,6 +93,8 @@ steps:
- echo "DRONE_BUILD_STARTED ${DRONE_BUILD_STARTED}"
- echo "DRONE_BUILD_STATUS ${DRONE_BUILD_STATUS}"
- echo "DRONE_BUILD_TRIGGER ${DRONE_BUILD_TRIGGER}"
- echo "DRONE_FAILED_STAGES ${DRONE_FAILED_STAGES}"
- echo "DRONE_FAILED_STEPS ${DRONE_FAILED_STEPS}"
- echo " ================================= "
- echo ok
- curl -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"
@ -90,9 +103,5 @@ steps:
- failure
- success
volumes:
- name: deps
temp: {}
- name: ssh_key
host:
path: /home/repo/drone
depends_on:
- default