From 8e9c4794ce9f8c017519785ee9851fb97ca363b4 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Wed, 28 Mar 2018 15:14:18 +0800 Subject: [PATCH] Add 3 retries when the installation fails for lint test Change-Id: I9ae31a3934d10eb37509f9889381377cef94df0a --- playbooks/run-lint-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/run-lint-tests.yaml b/playbooks/run-lint-tests.yaml index cd08a6dc2..55daef858 100644 --- a/playbooks/run-lint-tests.yaml +++ b/playbooks/run-lint-tests.yaml @@ -20,7 +20,7 @@ export GEM_HOME=`pwd`/.bundled_gems if [ -f Gemfile ]; then gem install bundler --no-rdoc --no-ri --verbose - $GEM_HOME/bin/bundle install --without system_tests + $GEM_HOME/bin/bundle install --without system_tests --retry 3 $GEM_HOME/bin/bundle exec rake lint 2>&1 else gem install rake -n ./.bundled_gems/