Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yum] Clear cached data and add retry loop (elastic#19182)
This commit makes the yum commands more robust by: - clearing the cache after the install command is finished - adding a retry loop so that the installation is retried in case of transient network issues Without this fix, the Unified Release Process can't complete any Stack/Solution snapshots or staging builds because of the following error: ``` "[Errno -1] repomd.xml does not match metalink for epel" ``` This is related to this [Slack discussion for building the 7.8.0 BC7](https://elastic.slack.com/archives/C0JFN9HJL/p1592055371477200) and related to this https://serverfault.com/questions/1021273/yum-install-jq-is-failing-intermittently-on-centos7 This is inspired by what the Elasticsearch team is doing for building the Elasticsearch Docker image - https://github.com/elastic/dockerfiles/blob/a5749cb11d8b38491c40efa476c576ab60a3a9f8/elasticsearch/Dockerfile#L16
- Loading branch information