From 36aa42f384382fd71f0e3ebdd33cd1bd434577e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Thu, 27 Aug 2020 15:33:32 -0700 Subject: [PATCH] ci: retry failed west update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Transient network errors may cause west update to fail. Retry it in case that happens. Updates for projects which are already up to date won't hit the network. Signed-off-by: Martí Bolívar --- .buildkite/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/run.sh b/.buildkite/run.sh index 711183565cb..e1a9ba2ae9e 100755 --- a/.buildkite/run.sh +++ b/.buildkite/run.sh @@ -30,7 +30,7 @@ if [ -n "${DAILY_BUILD}" ]; then SANITYCHECK_OPTIONS=" --inline-logs -N --build-only --all --retry-failed 3 -v " echo "--- DAILY BUILD" west init -l . - west update 1> west.update.log + west update 1> west.update.log || west update 1> west.update-2.log west forall -c 'git reset --hard HEAD' source zephyr-env.sh ./scripts/sanitycheck --subset ${JOB_NUM}/${BUILDKITE_PARALLEL_JOB_COUNT} ${SANITYCHECK_OPTIONS}