mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CI/CD: Update retry logic for package validation (#92943)
* baldm0mma/retry_command/ update retry logic for package validation * baldm0mma/retry_command/ update to 15 minutes * baldm0mma/retry_command/ update to 30 minute retry * baldm0mma/retry_command/ make drone
This commit is contained in:
@@ -1266,7 +1266,8 @@ def publish_linux_packages_step(package_manager = "deb"):
|
||||
},
|
||||
}
|
||||
|
||||
def retry_command(command, attempts = 5, delay = 60):
|
||||
# This retry will currently continue for 30 minutes until fail, unless successful.
|
||||
def retry_command(command, attempts = 60, delay = 30):
|
||||
return [
|
||||
"for i in $(seq 1 %d); do" % attempts,
|
||||
" if %s; then" % command,
|
||||
|
||||
Reference in New Issue
Block a user