From 16835ea0f08a71cdecee50ea15fe584dd606b1fb Mon Sep 17 00:00:00 2001 From: Koichi Ito Date: Sat, 10 Oct 2026 11:50:57 +0900 Subject: [PATCH] timeout --- .drone.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0b87272..c0f29f9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,10 +27,16 @@ steps: - arduino-cli config set board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json - arduino-cli config set network.connection_timeout 300s - | - for i in 1 2 3 4 5; do - arduino-cli core update-index && arduino-cli core install esp32:esp32@2.0.14 && break + for i in $(seq 1 5); do + arduino-cli core update-index && break if [ "$i" = 5 ]; then exit 1; fi - echo "Retry $i failed, waiting..."; sleep 15 + echo "update-index retry $i failed, waiting..."; sleep 10 + done + - | + for i in $(seq 1 5); do + arduino-cli core install esp32:esp32@2.0.14 && break + if [ "$i" = 5 ]; then exit 1; fi + echo "core install retry $i failed, waiting..."; sleep 10 done # ライブラリのインストール - mkdir -p /root/Arduino/libraries