Run command on pipeline container for debugging

When debugging with drone exec, I often set a sleep like so:

  - sleep 600

Run docker ps, grab the container id and run:
docker exec -it container_id /bin/sh
for quicker, interactive debugging.

This is extremely useful and would be even more awesome if I could achieve this remote? (Note: I’m using helm chart but would consider switching)

1 Like

The sleep is a clever workaround, but I’d love to see SSH debug functionality built in similar to what Travis CI has.

as an aside, you can run pipeline locally in an emulated Drone environment which can also be very useful for debugging.

If you know what step might fail you can use bash operators to sleep if a failure occurs

- # step before
- pytest || sleep 100000
- # step after