mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 01:48:29 +08:00
exit if RETRY is false
This commit is contained in:
parent
ad15c4ac78
commit
ccb5eed717
|
@ -52,6 +52,7 @@ task "qunit:test" => :environment do
|
||||||
begin
|
begin
|
||||||
sh(cmd)
|
sh(cmd)
|
||||||
rescue
|
rescue
|
||||||
|
exit if ENV['RETRY'].present? && ENV['RETRY'] == 'false'
|
||||||
sleep 2
|
sleep 2
|
||||||
tries += 1
|
tries += 1
|
||||||
retry unless tries == 10
|
retry unless tries == 10
|
||||||
|
|
Loading…
Reference in New Issue
Block a user