The source project of this merge request has been removed.
Use retry() macro in front of all package-installing commands
Detailed Description
Extends !2395 (merged), use retry() to run apt-get and yum commands.
The macro itself now accepts command line arguments, as documented in .gitlab-ci.yml:
#
# Run a command up to 5 times with delays, mainly to survive
# transient network issues. The delay starts at 15 seconds,
# and increases by 15 seconds after each retry.
#
# Usage:
# retry [--max-try <2--5>]
# [--exit-patt <awk-pattern>]
# [--cleanup-cmd <cleanup-command>]
# [--]
# <command> <args>...
#
# Options:
# --max-try:
# How many times to try <command> (2--5, default: 3).
# --exit-patt:
# Fail if <awk-pattern> is detected in the output of
# <command>. A default pattern may also be set using
# the $RETRY_EXIT_PATT environment variable.
# --cleanup-cmd:
# Run <cleanup-command> before retrying <command>. A
# default cleanup command may also be set using the
# $RETRY_CLEANUP_CMD environment variable.
#
See #790 (closed)
API Changes
-
These changes do not modify the API. -
These changes are backwards compatible. -
These changes are backwards incompatible.
For examples of changes that do not modify the API and/or are considered backwards (in)compatible, please see the contributing guide.
Justification for Backwards Incompatible Changes
n/a
Review Status
n/a