debugging
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-02-27 21:09:17 +01:00
parent 97dfea517f
commit f74b8a1546

View File

@@ -125,34 +125,13 @@ steps:
- export VM_IP=192.168.178.$((211 + DRONE_BUILD_NUMBER % 44)) - export VM_IP=192.168.178.$((211 + DRONE_BUILD_NUMBER % 44))
- export RUN_ID=$(echo $DRONE_COMMIT_SHA | head -c 8) - export RUN_ID=$(echo $DRONE_COMMIT_SHA | head -c 8)
- export API_URL="http://e2e$${RUN_ID}.192.168.178.201.nip.io" - export API_URL="http://e2e$${RUN_ID}.192.168.178.201.nip.io"
- export SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
- echo "VM_IP=$VM_IP RUN_ID=$RUN_ID API_URL=$API_URL" - echo "VM_IP=$VM_IP RUN_ID=$RUN_ID API_URL=$API_URL"
- echo "Waiting for VM to be reachable..." - echo "Waiting for VM to be reachable..."
- timeout 60 bash -c "until sshpass -p \"$E2E_VM_PASSWORD\" ssh $SSH_OPTS debian@$VM_IP 'echo ok'; do sleep 5; done" - timeout 60 bash -c "until sshpass -p \"$E2E_VM_PASSWORD\" ssh debian@$VM_IP 'echo ok'; do sleep 5; done"
- sshpass -p "$E2E_VM_PASSWORD" scp $SSH_OPTS scripts/e2e-test.sh debian@$VM_IP:/tmp/e2e-test.sh - sshpass -p "$E2E_VM_PASSWORD" scp scripts/e2e-test.sh debian@$VM_IP:/tmp/e2e-test.sh
- sshpass -p "$E2E_VM_PASSWORD" ssh $SSH_OPTS debian@$VM_IP "chmod +x /tmp/e2e-test.sh" - sshpass -p "$E2E_VM_PASSWORD" ssh debian@$VM_IP "chmod +x /tmp/e2e-test.sh"
- sshpass -p "$E2E_VM_PASSWORD" ssh $SSH_OPTS debian@$VM_IP "REPO_URL=https://gitea.gilmour109.de/gilmour109/calchat.git COMMIT_SHA=$DRONE_COMMIT_SHA API_URL=$API_URL bash /tmp/e2e-test.sh" - sshpass -p "$E2E_VM_PASSWORD" ssh debian@$VM_IP "REPO_URL=https://gitea.gilmour109.de/gilmour109/calchat.git COMMIT_SHA=$DRONE_COMMIT_SHA API_URL=$API_URL bash /tmp/e2e-test.sh"
- sshpass -p "$E2E_VM_PASSWORD" scp $SSH_OPTS debian@$VM_IP:/tmp/e2e-results.txt /tmp/e2e-results.txt - sshpass -p "$E2E_VM_PASSWORD" scp debian@$VM_IP:/tmp/e2e-results.txt /tmp/e2e-results.txt
- name: notify_failure
image: drillster/drone-email
settings:
host:
from_secret: smtp_host
username:
from_secret: smtp_username
password:
from_secret: smtp_password
from: liwa7755@bht-berlin.de
recipients:
- liwa7755@bht-berlin.de
subject: "E2E Tests failed: ${DRONE_REPO} #${DRONE_BUILD_NUMBER}"
body: |
E2E tests failed for commit ${DRONE_COMMIT_SHA:0:8} on branch ${DRONE_BRANCH}.
Build: ${DRONE_BUILD_LINK}
when:
status:
- failure
- name: destroy_e2e_vm - name: destroy_e2e_vm
image: gitea.gilmour109.de/gilmour109/e2e-tools:latest image: gitea.gilmour109.de/gilmour109/e2e-tools:latest